From 75236daeb83b1359df11440537bea541131e7397 Mon Sep 17 00:00:00 2001 From: Joseph Flinn <58369717+joseph-flinn@users.noreply.github.com> Date: Tue, 1 Jun 2021 13:50:53 -0700 Subject: [PATCH] constraining the releases to the rc branch (#318) --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 03d870c..cf46167 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,6 +16,15 @@ jobs: package_version: ${{ steps.create_tags.outputs.package_version }} tag_version: ${{ steps.create_tags.outputs.tag_version }} steps: + - name: Branch check + run: | + if [[ "$GITHUB_REF" != "refs/heads/rc" ]]; then + echo "===================================" + echo "[!] Can only release from rc branch" + echo "===================================" + exit 1 + fi + - name: Checkout repo uses: actions/checkout@v2