Created
January 17, 2023 23:08
-
-
Save jeffreyaven/659b56d2474ed1fb8944e1c816b28f49 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { exec } from 'node:child_process'; | |
const version = `v${process.env['REG_COMMIT_YEAR']}.${process.env['REG_COMMIT_MONTH']}.${process.env['REG_PR_NO'].padStart(5, '0')}`; | |
console.log(`REG_VERSION: ${version}`); | |
exec(`echo "REG_VERSION=${version}" >> $GITHUB_ENV`); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment