Skip to content

Commit 575e194

Browse files
authored
Merge pull request #83 from amplify-education/hotfix/environment-comparison-fix
Fix environment comparisons
2 parents 8cd6a70 + 6d05227 commit 575e194

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
@@ -40,12 +40,12 @@ jobs:
4040
4141
- name: Create tag
4242
uses: rickstaa/action-create-tag@v1
43-
if: ${{ env.VERSION_CHANGED == "true" }}
43+
if: env.VERSION_CHANGED == 'true'
4444
with:
4545
tag: "v${{ steps.extract_version.outputs.version }}"
4646

4747
- name: Make changelog
48-
if: ${{ env.VERSION_CHANGED == "true" }}
48+
if: env.VERSION_CHANGED == 'true'
4949
id: create_changelog
5050
uses: mikepenz/release-changelog-builder-action@v3
5151
env:
@@ -54,7 +54,7 @@ jobs:
5454
toTag: 'v${{ steps.extract_version.outputs.version }}'
5555

5656
- name: Create release
57-
if: ${{ env.VERSION_CHANGED == "true" }}
57+
if: env.VERSION_CHANGED == 'true'
5858
uses: softprops/action-gh-release@v1
5959
with:
6060
tag_name: 'v${{ steps.extract_version.outputs.version }}'
@@ -63,7 +63,7 @@ jobs:
6363
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6464

6565
- name: Publish new version
66-
if: ${{ env.VERSION_CHANGED == "true" }}
66+
if: env.VERSION_CHANGED == 'true'
6767
# Note: Setting NODE_AUTH_TOKEN as job|workspace wide env var won't work
6868
# as it appears actions/setup-node sets own value
6969
env:

0 commit comments

Comments
 (0)