Skip to content

Commit

Permalink
ci: change pr closed triggers (#980)
Browse files Browse the repository at this point in the history
Co-authored-by: petarpeshev <petar.peshev@bitt.com>
  • Loading branch information
mmpetarpeshev and petarpeshev authored Nov 7, 2024
1 parent 9dc599c commit 34c09f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/stg-pipeline-mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ jobs:
app: ${{ env.APP }}

- name: Staging undeploy
if: github.event_name == 'pull_request' && github.event.action == 'closed' && startsWith(github.head_ref, 'release') != true
if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true && startsWith(github.head_ref, 'release') != true
uses: aeternity/ae-github-actions/argocd-undeploy@v5
with:
url-prefix: pr-${{ env.PR_NUMBER }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stg-pipeline-testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
app: ${{ env.APP }}

- name: Staging undeploy
if: github.event_name == 'pull_request' && github.event.action == 'closed' && startsWith(github.head_ref, 'release') != true
if: github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.merged == true && startsWith(github.head_ref, 'release') != true
uses: aeternity/ae-github-actions/argocd-undeploy@v5
with:
url-prefix: pr-${{ env.PR_NUMBER }}
Expand Down

0 comments on commit 34c09f5

Please sign in to comment.