diff --git a/.github/workflows/ci-develop.yml b/.github/workflows/ci-develop.yml index 4f972ab..b056c10 100644 --- a/.github/workflows/ci-develop.yml +++ b/.github/workflows/ci-develop.yml @@ -107,8 +107,8 @@ jobs: deploy: runs-on: ubuntu-latest needs: publish - if: github.ref_name == env.BRANCH - + if: ${{ github.ref_type == 'branch' && github.ref_protected && github.event_name != 'pull_request' }} + steps: - name: Call deployment webhook run: | diff --git a/.github/workflows/ci-master.yml b/.github/workflows/ci-master.yml index 4cb5897..6d809c8 100644 --- a/.github/workflows/ci-master.yml +++ b/.github/workflows/ci-master.yml @@ -110,7 +110,7 @@ jobs: deploy: runs-on: ubuntu-latest needs: publish - if: github.ref_name == env.BRANCH + if: ${{ github.ref_type == 'branch' && github.ref_protected && github.event_name != 'pull_request' }} steps: - name: Call deployment webhook