Skip to content

Commit

Permalink
DANG-1559: Fix publish workflow not properly accessing environment va…
Browse files Browse the repository at this point in the history
…riables (#335)
  • Loading branch information
erin-doyle authored Sep 6, 2022
1 parent 713245f commit 4b8ba1e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4b8ba1e

Please sign in to comment.