Skip to content

Commit

Permalink
Pass runner version as environment variable in workflow (actions#3318)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmgross committed Jun 10, 2024
1 parent edfdbb9 commit 3f28dd8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@ jobs:
- name: Compute image version
id: image
uses: actions/github-script@v6
env:
RUNNER_VERSION: ${{ github.event.inputs.runnerVersion }}
with:
script: |
const fs = require('fs');
const inputRunnerVersion = "${{ github.event.inputs.runnerVersion }}"
const inputRunnerVersion = process.env.RUNNER_VERSION;
if (inputRunnerVersion) {
console.log(`Using input runner version ${inputRunnerVersion}`)
core.setOutput('version', inputRunnerVersion);
Expand Down

0 comments on commit 3f28dd8

Please sign in to comment.