Skip to content

Commit

Permalink
Fix cancelled and ENVIRONMENT variable availability (#4479)
Browse files Browse the repository at this point in the history
* Fix cancelled, env

* Fix cancelled, env
  • Loading branch information
andrzejewsky authored Nov 22, 2023
1 parent 114272f commit 8cbcd25
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/lazy-seals-march.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"saleor-dashboard": patch
---

Fix cancelled and ENVIRONMENT variable availability in workflow
2 changes: 1 addition & 1 deletion .github/workflows/pr-automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ jobs:
retention-days: 1

merge-reports:
if: !cancelled()
if: '!cancelled()'
needs: [run-tests]

runs-on: ubuntu-latest
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Set environment
# Convert version into staging deployment name (e.g 3.3.0 -> saleor-staging-v33)
run: |
set -x
environment=$(echo $VERSION | sed -n 's#\([0-9]\+\).\([0-9]\+\).*#saleor-staging-v\1\2#p')
echo "ENVIRONMENT=${environment}" >> $GITHUB_ENV
- name: Setup Node
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit 8cbcd25

Please sign in to comment.