From 4b8ba1ee6bc62a7798710e487c2c0134e4807dd4 Mon Sep 17 00:00:00 2001 From: Erin Doyle Date: Tue, 6 Sep 2022 10:49:20 -0400 Subject: [PATCH] DANG-1559: Fix publish workflow not properly accessing environment variables (#335) --- .github/workflows/publish.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 99c6579d4..861a13e98 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -114,10 +114,12 @@ jobs: if: steps.publish.outputs.type != 'none' uses: actions/github-script@v5 env: - NEW_VERSION: ${{ steps.publish.outputs.version }} - OLD_VERSION: ${{ steps.publish.outputs.old-version }} + NEW_VERSION: '${{ steps.publish.outputs.version }}' + OLD_VERSION: '${{ steps.publish.outputs.old-version }}' with: script: | + const { OLD_VERSION, NEW_VERSION } = process.env; + console.log(`Version changed: ${OLD_VERSION} => ${NEW_VERSION}`); // create the tag