File tree Expand file tree Collapse file tree 4 files changed +18
-3
lines changed
Expand file tree Collapse file tree 4 files changed +18
-3
lines changed Original file line number Diff line number Diff line change 1010 push :
1111 branches :
1212 - next
13+ permissions :
14+ contents : read
1315env :
1416 HUSKY : 0
1517jobs :
Original file line number Diff line number Diff line change @@ -2,11 +2,17 @@ name: Attempt to merge next to main
22on :
33 workflow_dispatch :
44
5+ permissions :
6+ contents : read
7+
58jobs :
69 # Check if next can merge into main
710 perform_merge :
811 name : Perform merge if "next" can merge into "main"
912 runs-on : ubuntu-latest
13+ permissions :
14+ contents : write # because we push - git push origin "main"
15+ pull-requests : write # PR updates
1016 steps :
1117 - name : Checkout
1218 uses : actions/checkout@v2
4046
4147 steps :
4248 - name : Post error message (To-Do)
43- run : echo "Next cannot be merged into main cleanly"
49+ run : echo "Next cannot be merged into main cleanly"
Original file line number Diff line number Diff line change 33 workflow_dispatch :
44 push :
55 branches :
6- - " next"
6+ - ' next'
7+ permissions :
8+ contents : read
79
810jobs :
911 # Check if next can merge into next-major
1012 perform_merge :
1113 name : Perform merge if "next" can merge into "next-major"
14+ permissions :
15+ contents : write # because we push - git push origin "next-major"
16+ pull-requests : write # PR updates
1217 runs-on : ubuntu-latest
1318 steps :
1419 - name : Checkout
6974
7075 steps :
7176 - name : Post error message (To-Do)
72- run : echo "Next cannot be merged into next-major cleanly"
77+ run : echo "Next cannot be merged into next-major cleanly"
Original file line number Diff line number Diff line change 55 branches :
66 - ' main'
77 - ' next'
8+ permissions :
9+ contents : read
810env :
911 HUSKY : 0
1012jobs :
You can’t perform that action at this time.
0 commit comments