Skip to content

Commit 0349ca6

Browse files
committed
feat: restructured jobs
1 parent 00d34c3 commit 0349ca6

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/deploy-merged-pr.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ jobs:
4444
fi
4545
4646
check-merge-state:
47-
needs: check-file-changes
48-
if: needs.check-file-changes.outputs.should_run == 'true'
47+
if: github.event.review.state == 'approved'
4948
runs-on: ubuntu-latest
5049
env:
5150
PR_NUMBER: ${{ github.event.pull_request.number }}
@@ -128,8 +127,8 @@ jobs:
128127
echo "Auto-merge enabled successfully!"
129128
130129
dispatch-to-internal:
131-
needs: check-merge-state
132-
if: needs.check-merge-state.outputs.checks_passed == 'true' && github.event.review.state == 'approved'
130+
needs: [check-file-changes, check-merge-state]
131+
if: needs.check-merge-state.outputs.checks_passed == 'true' && needs.check-file-changes.outputs.should_run == 'true' && github.event.review.state == 'approved'
133132
runs-on: ubuntu-latest
134133
env:
135134
SOURCE_REPO: github/github-well-architected

0 commit comments

Comments
 (0)