Skip to content

Commit 302afd0

Browse files
authored
Merge pull request #80 from amplify-education/hotfix/env-variable-fix
Env variable fix
2 parents 761bfdf + 1576bf3 commit 302afd0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ jobs:
3737

3838
- name: Create tag
3939
uses: rickstaa/action-create-tag@v1
40-
if: $VERSION_CHANGED
40+
if: ${{ env.VERSION_CHANGED }}
4141
with:
4242
tag: "v${{ steps.extract_version.outputs.version }}"
4343

4444
- name: Make changelog
45-
if: $VERSION_CHANGED
45+
if: ${{ env.VERSION_CHANGED }}
4646
id: create_changelog
4747
uses: mikepenz/release-changelog-builder-action@v3
4848
env:
@@ -51,7 +51,7 @@ jobs:
5151
toTag: 'v${{ steps.extract_version.outputs.version }}'
5252

5353
- name: Create release
54-
if: $VERSION_CHANGED
54+
if: ${{ env.VERSION_CHANGED }}
5555
uses: softprops/action-gh-release@v1
5656
with:
5757
tag_name: 'v${{ steps.extract_version.outputs.version }}'
@@ -60,7 +60,7 @@ jobs:
6060
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6161

6262
- name: Publish new version
63-
if: $VERSION_CHANGED
63+
if: ${{ env.VERSION_CHANGED }}
6464
# Note: Setting NODE_AUTH_TOKEN as job|workspace wide env var won't work
6565
# as it appears actions/setup-node sets own value
6666
env:

0 commit comments

Comments
 (0)