|
1 | 1 | name: TSC Management Workflow |
2 | 2 |
|
3 | 3 | on: |
4 | | - pull_request: |
| 4 | + pull_request_target: |
5 | 5 | types: [closed] |
6 | 6 | paths: |
7 | 7 | - 'MAINTAINERS.yaml' |
|
90 | 90 | - name: Add new TSC members to the team |
91 | 91 | uses: actions/github-script@v6 |
92 | 92 | with: |
93 | | - github-token: ${{ secrets.GH_TOKEN }} |
| 93 | + github-token: ${{ secrets.GH_TOKEN_ORG_ADMIN }} |
94 | 94 | script: | |
95 | 95 | const newTscMembers = ${{ needs.detect_tsc_membership_changes.outputs.updatedMaintainers }}; |
96 | 96 | for (const tscMember of newTscMembers) { |
@@ -152,7 +152,7 @@ jobs: |
152 | 152 | - name: Remove TSC members from the team |
153 | 153 | uses: actions/github-script@v6 |
154 | 154 | with: |
155 | | - github-token: ${{ secrets.GH_TOKEN }} |
| 155 | + github-token: ${{ secrets.GH_TOKEN_ORG_ADMIN }} |
156 | 156 | script: | |
157 | 157 | const removedMaintainers = ${{ needs.detect_tsc_membership_changes.outputs.updatedMaintainers }}; |
158 | 158 | for (const maintainer of removedMaintainers) { |
@@ -203,7 +203,6 @@ jobs: |
203 | 203 | - name: Add Former TSC members to Emeritus.yaml and print |
204 | 204 | uses: actions/github-script@v6 |
205 | 205 | with: |
206 | | - github-token: ${{ secrets.GH_TOKEN }} |
207 | 206 | script: | |
208 | 207 | const fs = require('fs'); |
209 | 208 | const path = './Emeritus.yaml'; |
@@ -239,7 +238,8 @@ jobs: |
239 | 238 | run: | |
240 | 239 | git add . |
241 | 240 | 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 }} |
243 | 243 |
|
244 | 244 | - name: Create PR |
245 | 245 | run: | |
|
0 commit comments