Skip to content

Commit

Permalink
ci: add checks to ensure post-release never runs on main/master/night…
Browse files Browse the repository at this point in the history
…ly (#1214)
  • Loading branch information
ClementTsang authored Jun 19, 2023
1 parent 45840d4 commit 22d0d49
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,9 @@ jobs:
run: |
echo $RELEASE_VERSION
- name: Make sure you're not on master...
run: |
if [[ $RELEASE_VERSION == "master" ]]; then
exit 1
fi
- name: Make sure you're not on nightly...
- name: Make sure you're not on master/main/nightly...
run: |
if [[ $RELEASE_VERSION == "nightly" ]]; then
if [[ $RELEASE_VERSION == "master" || $RELEASE_VERSION == "main" || $RELEASE_VERSION == "nightly" ]]; then
exit 1
fi
Expand All @@ -96,6 +90,12 @@ jobs:
winget:
runs-on: windows-latest
steps:
- name: Make sure you're not on master/main/nightly...
run: |
if [[ $RELEASE_VERSION == "master" || $RELEASE_VERSION == "main" || $RELEASE_VERSION == "nightly" ]]; then
exit 1
fi
- uses: vedantmgoyal2009/winget-releaser@79853c0938cc9946c1ec3cdd1b2e761bb0372b8c # v2
with:
identifier: Package.Identifier
Expand Down

0 comments on commit 22d0d49

Please sign in to comment.