Skip to content

Commit 61efce6

Browse files
committed
ci: Skip gitflow steps if no PR was created
1 parent f352f97 commit 61efce6

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/gitflow-sync-develop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ jobs:
4545
# https://github.com/marketplace/actions/auto-approve
4646
- name: Auto approve PR
4747
uses: hmarr/auto-approve-action@v3
48+
if: steps.open-pr.outputs.pr_number != ''
4849
with:
4950
pull-request-number: ${{ steps.open-pr.outputs.pr_number }}
5051
review-message: 'Auto approved automated PR'

.github/workflows/gitflow-sync-master.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
# https://github.com/marketplace/actions/auto-approve
4848
- name: Auto approve PR
4949
uses: hmarr/auto-approve-action@v3
50+
if: steps.open-pr.outputs.pr_number != ''
5051
with:
5152
pull-request-number: ${{ steps.open-pr.outputs.pr_number }}
5253
review-message: 'Auto approved automated PR'

0 commit comments

Comments
 (0)