summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2023-06-19 00:13:24 +0000
committerGitHub <noreply@github.com>2023-06-18 20:13:24 -0400
commit22d0d49984d8c6cf51db697028b964618eed173c (patch)
tree06e6a3b013f9192ceb3921cef8fbe2b10caa0c1f
parent45840d45c5cfd9acdd92acda6e89d6a82c356577 (diff)
ci: add checks to ensure post-release never runs on main/master/nightly (#1214)
-rw-r--r--.github/workflows/post-release.yml16
1 files changed, 8 insertions, 8 deletions
diff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.yml
index 3aece44a..37481aeb 100644
--- a/.github/workflows/post-release.yml
+++ b/.github/workflows/post-release.yml
@@ -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
@@ -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