Skip to content

Commit

Permalink
CI: migrate from deprecated set-output to GITHUB_ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
cknitt committed Jun 10, 2024
1 parent 96f3883 commit 0a631e1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/bump-version.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const fs = require("fs");
const os = require("os");
const path = require("path");
const semver = require("semver");

Expand Down Expand Up @@ -47,4 +48,7 @@ if (!semver.valid(newVersion)) {
throw new Error("Invalid version string: ", newVersion);
}

console.log(`::set-output name=new_version::${newVersion}`);
fs.appendFileSync(
process.env.GITHUB_ENV,
`new_version=${newVersion}${os.EOL}`
);

0 comments on commit 0a631e1

Please sign in to comment.