File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
branch_protection_settings Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1616 },
1717 "required_pull_request_reviews" : {
1818 "url" : " https://api.github.com/repos/aws-powertools/powertools-lambda-java/branches/main/protection/required_pull_request_reviews" ,
19- "dismiss_stale_reviews" : false ,
19+ "dismiss_stale_reviews" : true ,
2020 "require_code_owner_reviews" : false ,
2121 "require_last_push_approval" : false ,
2222 "required_approving_review_count" : 0
Original file line number Diff line number Diff line change 3636 GH_TOKEN : ${{ secrets.BRANCH_PROTECTION_TOKEN }}
3737 run : |
3838 # Fetch branch protections and store them in a file
39- gh api /repos/${{ github.repository }}/branches/${{ matrix.branch }}/protection \
39+ gh api /repos/${{ github.repository }}/branches/${{ matrix.branch }}/protection | jq \
4040 > .github/branch_protection_settings/${{ matrix.branch }}.json
4141 - name : Compare branch protections
4242 id : compare
5151 - name : Fail workflow
5252 if : ${{ env.diff_failed == 'true' }}
5353 run : |
54+ git diff .github/branch_protection_settings/${{ matrix.branch }}.json
5455 echo "::error::Branch protections have been changed"
You can’t perform that action at this time.
0 commit comments