mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-26 14:10:19 +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: |
|
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
|
||||||
|
|
Loading…
Reference in a new issue