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 16
16
},
17
17
"required_pull_request_reviews" : {
18
18
"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 ,
20
20
"require_code_owner_reviews" : false ,
21
21
"require_last_push_approval" : false ,
22
22
"required_approving_review_count" : 0
Original file line number Diff line number Diff line change 36
36
GH_TOKEN : ${{ secrets.BRANCH_PROTECTION_TOKEN }}
37
37
run : |
38
38
# 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 \
40
40
> .github/branch_protection_settings/${{ matrix.branch }}.json
41
41
- name : Compare branch protections
42
42
id : compare
51
51
- name : Fail workflow
52
52
if : ${{ env.diff_failed == 'true' }}
53
53
run : |
54
+ git diff .github/branch_protection_settings/${{ matrix.branch }}.json
54
55
echo "::error::Branch protections have been changed"
You can’t perform that action at this time.
0 commit comments