@@ -211,35 +211,36 @@ jobs:
211
211
-f ref="refs/heads/${{ env.MAIN_BRANCH }}" \
212
212
-f sha="${{ steps.latest-sha.outputs.sha }}"
213
213
214
- - name : Update protect_main.json file
215
- # TODO change develop to main
216
- run : |
217
- curl -O https://raw.githubusercontent.com/${{ github.repository }}/develop/branch_rules/protect_main.json
218
- cat protect_main.json | jq '.bypass_actors[0].actor_id = ${{ secrets.ACTOR_ID_TEAM }}' > protect_main_insert.json
219
-
220
- - name : Apply ruleset for '${{ env.MAIN_BRANCH }}'
221
- run : |
222
- gh api \
223
- --method POST \
224
- -H "Accept: application/vnd.github+json" \
225
- -H "X-GitHub-Api-Version: 2022-11-28" \
226
- /repos/${{ env.TARGET_REPO }}/rulesets \
227
- --input protect_main_insert.json
228
-
229
- - name : Update protect_develop.json file
230
- # TODO change develop to main
231
- run : |
232
- curl -O https://raw.githubusercontent.com/${{ github.repository }}/develop/branch_rules/protect_develop.json
233
- cat protect_develop.json | jq '.bypass_actors[0].actor_id = ${{ secrets.ACTOR_ID_REPO_ROLE }} | .bypass_actors[1].actor_id = ${{ secrets.ACTOR_ID_TEAM }} | .bypass_actors[2].actor_id = ${{ secrets.ACTOR_ID_ORG_ADMIN }}' > protect_develop_insert.json
234
-
235
- - name : Apply ruleset for 'develop'
236
- run : |
237
- gh api \
238
- --method POST \
239
- -H "Accept: application/vnd.github+json" \
240
- -H "X-GitHub-Api-Version: 2022-11-28" \
241
- /repos/${{ env.TARGET_REPO }}/rulesets \
242
- --input protect_develop_insert.json
214
+ # TODO renable as soon as Teama ctor ID works again
215
+ # - name: Update protect_main.json file
216
+ # # TODO change develop to main
217
+ # run: |
218
+ # curl -O https://raw.githubusercontent.com/${{ github.repository }}/develop/branch_rules/protect_main.json
219
+ # cat protect_main.json | jq '.bypass_actors[0].actor_id = ${{ secrets.ACTOR_ID_TEAM }}' > protect_main_insert.json
220
+
221
+ # - name: Apply ruleset for '${{ env.MAIN_BRANCH }}'
222
+ # run: |
223
+ # gh api \
224
+ # --method POST \
225
+ # -H "Accept: application/vnd.github+json" \
226
+ # -H "X-GitHub-Api-Version: 2022-11-28" \
227
+ # /repos/${{ env.TARGET_REPO }}/rulesets \
228
+ # --input protect_main_insert.json
229
+
230
+ # - name: Update protect_develop.json file
231
+ # # TODO change develop to main
232
+ # run: |
233
+ # curl -O https://raw.githubusercontent.com/${{ github.repository }}/develop/branch_rules/protect_develop.json
234
+ # cat protect_develop.json | jq '.bypass_actors[0].actor_id = ${{ secrets.ACTOR_ID_REPO_ROLE }} | .bypass_actors[1].actor_id = ${{ secrets.ACTOR_ID_TEAM }} | .bypass_actors[2].actor_id = ${{ secrets.ACTOR_ID_ORG_ADMIN }}' > protect_develop_insert.json
235
+
236
+ # - name: Apply ruleset for 'develop'
237
+ # run: |
238
+ # gh api \
239
+ # --method POST \
240
+ # -H "Accept: application/vnd.github+json" \
241
+ # -H "X-GitHub-Api-Version: 2022-11-28" \
242
+ # /repos/${{ env.TARGET_REPO }}/rulesets \
243
+ # --input protect_develop_insert.json
243
244
244
245
prepare-release :
245
246
runs-on : ubuntu-latest
0 commit comments