ci: add checks to ensure post-release never runs on main/master/nightly (#1214)

This commit is contained in:
Clement Tsang 2023-06-19 00:13:24 +00:00 committed by GitHub
parent 45840d45c5
commit 22d0d49984
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,15 +74,9 @@ jobs:
run: | run: |
echo $RELEASE_VERSION echo $RELEASE_VERSION
- name: Make sure you're not on master... - name: Make sure you're not on master/main/nightly...
run: | run: |
if [[ $RELEASE_VERSION == "master" ]]; then if [[ $RELEASE_VERSION == "master" || $RELEASE_VERSION == "main" || $RELEASE_VERSION == "nightly" ]]; then
exit 1
fi
- name: Make sure you're not on nightly...
run: |
if [[ $RELEASE_VERSION == "nightly" ]]; then
exit 1 exit 1
fi fi
@ -96,6 +90,12 @@ jobs:
winget: winget:
runs-on: windows-latest runs-on: windows-latest
steps: 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 - uses: vedantmgoyal2009/winget-releaser@79853c0938cc9946c1ec3cdd1b2e761bb0372b8c # v2
with: with:
identifier: Package.Identifier identifier: Package.Identifier