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: |
echo $RELEASE_VERSION
- name: Make sure you're not on master...
- name: Make sure you're not on master/main/nightly...
run: |
if [[ $RELEASE_VERSION == "master" ]]; then
exit 1
fi
- name: Make sure you're not on nightly...
run: |
if [[ $RELEASE_VERSION == "nightly" ]]; then
if [[ $RELEASE_VERSION == "master" || $RELEASE_VERSION == "main" || $RELEASE_VERSION == "nightly" ]]; then
exit 1
fi
@ -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