Skip to content

Commit eac760e

Browse files
committed
ci: Skip gitflow steps if no PR was created
1 parent c91e1fd commit eac760e

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
@@ -44,6 +44,7 @@ jobs:
4444
# https://github.com/marketplace/actions/auto-approve
4545
- name: Auto approve PR
4646
uses: hmarr/auto-approve-action@v3
47+
if: steps.open-pr.outputs.pr_number != ''
4748
with:
4849
pull-request-number: ${{ steps.open-pr.outputs.pr_number }}
4950
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
@@ -46,6 +46,7 @@ jobs:
4646
# https://github.com/marketplace/actions/auto-approve
4747
- name: Auto approve PR
4848
uses: hmarr/auto-approve-action@v3
49+
if: steps.open-pr.outputs.pr_number != ''
4950
with:
5051
pull-request-number: ${{ steps.open-pr.outputs.pr_number }}
5152
review-message: 'Auto approved automated PR'

0 commit comments

Comments
 (0)