From 3f28dd845f5665426c4df81f2ef230d1cb1dd2da Mon Sep 17 00:00:00 2001 From: Josh Gross Date: Mon, 10 Jun 2024 18:13:17 -0400 Subject: [PATCH] Pass runner version as environment variable in workflow (#3318) --- .github/workflows/publish-image.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);