Skip to content

Commit

Permalink
GITHUB_CURRENT_SHA -> GITHUB_SOURCE_SHA
Browse files Browse the repository at this point in the history
  • Loading branch information
dsotirakis committed Dec 3, 2024
1 parent 615822d commit ee35e42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/updaters/generic-sha.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export class GenericSha extends DefaultUpdater {
*/
private getLatestCommitSha(): string {
// fetch the latest commit SHA from GitHub Actions environment variable
const sha = process.env.GITHUB_CURRENT_SHA;
const sha = process.env.GITHUB_SOURCE_SHA;
if (!sha) {
throw new Error('GITHUB_SHA is not available. Make sure this is run in a GitHub Actions environment.');
throw new Error('GITHUB_SOURCE_SHA is not available. Make sure this is run in a GitHub Actions environment.');
}
return sha;
}
Expand Down

0 comments on commit ee35e42

Please sign in to comment.