File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818 PR_NUMBER : ${{ github.event.pull_request.number }}
1919 SOURCE_REPO : ${{ github.repository }}
2020 outputs :
21- should_run : ${{ steps.filter.outputs.should_run }}
21+ should_sync : ${{ steps.filter.outputs.should_sync }}
2222 steps :
2323 - name : Check Changed File Paths
2424 id : filter
@@ -36,11 +36,11 @@ jobs:
3636
3737 NON_WORKFLOW_CHANGES=$(echo "$CHANGED_FILES" | jq --argjson exclude "$EXCLUDE_FILTER" '[.[] | select(. as $f | $exclude | any(. as $p | $f | startswith($p)) | not)] | length')
3838 if [ "$NON_WORKFLOW_CHANGES" -gt 0 ]; then
39- echo "PR contains changes outside .github/workflows/ — proceeding."
40- echo "should_run =true" >> $GITHUB_OUTPUT
39+ echo "PR contains changes outside filter paths — proceeding."
40+ echo "should_sync =true" >> $GITHUB_OUTPUT
4141 else
42- echo "All changes are under .github/workflows/ — skipping workflow."
43- echo "should_run =false" >> $GITHUB_OUTPUT
42+ echo "All changes are under filter paths — skipping workflow."
43+ echo "should_sync =false" >> $GITHUB_OUTPUT
4444 fi
4545
4646 check-merge-state :
@@ -128,7 +128,7 @@ jobs:
128128
129129 dispatch-to-internal :
130130 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'
131+ if : needs.check-merge-state.outputs.checks_passed == 'true' && needs.check-file-changes.outputs.should_sync == 'true' && github.event.review.state == 'approved'
132132 runs-on : ubuntu-latest
133133 env :
134134 SOURCE_REPO : github/github-well-architected
You can’t perform that action at this time.
0 commit comments