Skip to content

Commit bcb402b

Browse files
aeworxetderberg
andauthored
ci: minor fixes to the TSC management workflow (#1734)
Co-authored-by: Viacheslav Turovskyi <aeworxet@protonmail.com> Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com>
1 parent 65a4a4d commit bcb402b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/tsc_management.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: TSC Management Workflow
22

33
on:
4-
pull_request:
4+
pull_request_target:
55
types: [closed]
66
paths:
77
- 'MAINTAINERS.yaml'
@@ -90,7 +90,7 @@ jobs:
9090
- name: Add new TSC members to the team
9191
uses: actions/github-script@v6
9292
with:
93-
github-token: ${{ secrets.GH_TOKEN }}
93+
github-token: ${{ secrets.GH_TOKEN_ORG_ADMIN }}
9494
script: |
9595
const newTscMembers = ${{ needs.detect_tsc_membership_changes.outputs.updatedMaintainers }};
9696
for (const tscMember of newTscMembers) {
@@ -152,7 +152,7 @@ jobs:
152152
- name: Remove TSC members from the team
153153
uses: actions/github-script@v6
154154
with:
155-
github-token: ${{ secrets.GH_TOKEN }}
155+
github-token: ${{ secrets.GH_TOKEN_ORG_ADMIN }}
156156
script: |
157157
const removedMaintainers = ${{ needs.detect_tsc_membership_changes.outputs.updatedMaintainers }};
158158
for (const maintainer of removedMaintainers) {
@@ -203,7 +203,6 @@ jobs:
203203
- name: Add Former TSC members to Emeritus.yaml and print
204204
uses: actions/github-script@v6
205205
with:
206-
github-token: ${{ secrets.GH_TOKEN }}
207206
script: |
208207
const fs = require('fs');
209208
const path = './Emeritus.yaml';
@@ -239,7 +238,8 @@ jobs:
239238
run: |
240239
git add .
241240
git commit -m "Update Emeritus.yaml"
242-
git push https://${{ secrets.GH_TOKEN}}@github.com/asyncapi/community update-emeritus-${{ github.run_id }}
241+
git remote set-url origin https://x-access-token:${{ secrets.GH_TOKEN }}@github.com/asyncapi/community.git
242+
git push origin update-emeritus-${{ github.run_id }}
243243
244244
- name: Create PR
245245
run: |

0 commit comments

Comments
 (0)