From 22d0d49984d8c6cf51db697028b964618eed173c Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Mon, 19 Jun 2023 00:13:24 +0000 Subject: ci: add checks to ensure post-release never runs on main/master/nightly (#1214) --- .github/workflows/post-release.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to '.github') 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 -- cgit v1.2.3