diff --git a/.github/workflows/publish-image.yml b/.github/workflows/publish-image.yml index fa906b29403..2932a268663 100644 --- a/.github/workflows/publish-image.yml +++ b/.github/workflows/publish-image.yml @@ -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);