Update index.js

This commit is contained in:
Pho3niX90 2023-06-28 19:18:03 +02:00 提交者 GitHub
父节点 0a5ec790ba
当前提交 b990f39960
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 6 次插入1 次删除

查看文件

@ -222,7 +222,12 @@ const pkg = getPackageJson();
newVersion = `${tagPrefix}${newVersion}${tagSuffix}`; newVersion = `${tagPrefix}${newVersion}${tagSuffix}`;
console.log(`newVersion after merging tagPrefix+newVersion+tagSuffix: ${newVersion}`); console.log(`newVersion after merging tagPrefix+newVersion+tagSuffix: ${newVersion}`);
// Using sh as command instead of directly echo to be able to use file redirection // Using sh as command instead of directly echo to be able to use file redirection
await runInWorkspace('sh', ['-c', `echo "newTag=${newVersion}" >> $GITHUB_OUTPUT`]); try {
await runInWorkspace('sh', ['-c', `echo "newTag=${newVersion}" >> $GITHUB_OUTPUT`]);
} catch {
// for runner < 2.297.0
console.log(`::set-output name=newTag::${newVersion}`);
}
try { try {
// to support "actions/checkout@v1" // to support "actions/checkout@v1"
if (process.env['INPUT_SKIP-COMMIT'] !== 'true') { if (process.env['INPUT_SKIP-COMMIT'] !== 'true') {