Skip to content

Commit

Permalink
ci: Use same deploy condition as API
Browse files Browse the repository at this point in the history
  • Loading branch information
redmushie committed Oct 6, 2023
1 parent fe5336b commit 4cac7d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4cac7d9

Please sign in to comment.