Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
d10sfan committed Oct 25, 2022
1 parent 28d7a55 commit b99591e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: 'Build Number Generator'
description: 'Generate sequential build numbers for workflow runs'
author: 'Einar Egilsson'
runs:
using: 'node12'
using: 'node16'
main: 'main.js'
inputs:
token:
Expand Down
2 changes: 0 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ function main() {
console.log(`Build number already generated in earlier jobs, using build number ${buildNumber}...`);
//Setting the output and a environment variable to new build number...
exec(`BUILD_NUMBER=${nextBuildNumber} >> $GITHUB_ENV`);
console.log(`::set-output name=build_number::${buildNumber}`);
return;
}

Expand Down Expand Up @@ -132,7 +131,6 @@ function main() {

//Setting the output and a environment variable to new build number...
exec(`BUILD_NUMBER=${nextBuildNumber} >> $GITHUB_ENV`);
console.log(`::set-output name=build_number::${nextBuildNumber}`);
//Save to file so it can be used for next jobs...
fs.writeFileSync('BUILD_NUMBER', nextBuildNumber.toString());

Expand Down

0 comments on commit b99591e

Please sign in to comment.