diff options
Diffstat (limited to '.github/workflows/archlinux.yml')
| -rw-r--r-- | .github/workflows/archlinux.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/.github/workflows/archlinux.yml b/.github/workflows/archlinux.yml index 1c87e03b3..7ee73fe47 100644 --- a/.github/workflows/archlinux.yml +++ b/.github/workflows/archlinux.yml @@ -17,9 +17,12 @@ jobs: uses: actions/github-script@v7 with: script: | + const fs = require('fs'); + const outputFile = process.env.GITHUB_OUTPUT; + // Always run for release events if (context.eventName === 'release') { - core.setOutput('should-run', true); + fs.appendFileSync(outputFile, `should-run=true\n`); core.info('Release event detected. Will run tests.'); return; } @@ -41,7 +44,8 @@ jobs: const random = Math.abs(hash) / 2147483647; const shouldRun = random < probability; - core.setOutput('should-run', shouldRun); + // Use environment file instead of deprecated set-output + fs.appendFileSync(outputFile, `should-run=${shouldRun}\n`); if (shouldRun) { core.info(`Random check passed (${(random * 100).toFixed(2)}% < ${(probability * 100).toFixed(0)}%). Will run tests.`); } else { |
