Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
rgychiu committed Nov 17, 2023
1 parent 8d62fd5 commit 53ba9d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

strategy:
matrix:
node-version: [12.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ inputs:
signature-regex:
description: "The regex to locate the signature text. Should be single quoted. Note that comment bodies are toUpperCase'd before matching."
runs:
using: "node12"
using: "node18"
main: "lib/index.js"
2 changes: 2 additions & 0 deletions src/claFileRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export class ClaFileRepository {
// Cache the Sha in case we need to add commits to the operation.
return [new ClaFile(fileResult.data.content), fileResult.data.sha];
} catch (error) {
core.debug("Ran into an error fetching CLA file contents.")

// Only want to catch if the result is a response with a 404 error code, indicating no file was found.
if (error.status === 404) {
core.debug("Creating CLA file as it does not currently exist.");
Expand Down

0 comments on commit 53ba9d2

Please sign in to comment.