From 29ed6bf10ba2e51ced6357a8ab9340c07b5cf629 Mon Sep 17 00:00:00 2001 From: adrinr Date: Fri, 21 Apr 2023 16:49:24 +0100 Subject: [PATCH] Release only on develop --- .github/workflows/release-develop.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-develop.yml b/.github/workflows/release-develop.yml index 8cecc5f3d9..ebf3cb007e 100644 --- a/.github/workflows/release-develop.yml +++ b/.github/workflows/release-develop.yml @@ -31,12 +31,12 @@ jobs: token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} fetch-depth: 1 - # - name: Fail if tag is not develop - # run: | - # if ! git merge-base --is-ancestor ${{ github.sha }} origin/develop; then - # echo "Tag is not in develop" - # exit 1 - # fi + - name: Fail if tag is not develop + run: | + if ! git merge-base --is-ancestor ${{ github.sha }} origin/develop; then + echo "Tag is not in develop" + exit 1 + fi - uses: actions/setup-node@v1 with: