Skip to content

Commit

Permalink
Add an error message with context when sha is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
cwbusacker committed Mar 21, 2024
1 parent ce1bd76 commit f6a4f70
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ async function run(): Promise<void> {
sha: context.sha ?? ''
})

if(github.CONFIG.sha === '')
{
console.error("Error: Commit sha is an empty string")
}

if (UPLOAD_KEY) {
const ARTIFACT_RETENTION_DAYS = getInput('ARTIFACT_RETENTION_DAYS')
? parseInt(getInput('RETENTION_DAYS'), 10)
Expand Down

0 comments on commit f6a4f70

Please sign in to comment.