mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-22 12:13:06 +00:00
ci: add checks to ensure post-release never runs on main/master/nightly (#1214)
This commit is contained in:
parent
45840d45c5
commit
22d0d49984
1 changed files with 8 additions and 8 deletions
16
.github/workflows/post-release.yml
vendored
16
.github/workflows/post-release.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue