Skip to content

Commit 304a4b8

Browse files
authored
Revert "Change update-proto workflow auth (#116)" (#162)
This reverts commit f055b7f.
1 parent 91932f2 commit 304a4b8

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/update-proto.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,19 @@ jobs:
1717
sync:
1818
name: "Update proto"
1919
runs-on: ubuntu-latest
20-
permissions:
21-
contents: write
2220

2321
defaults:
2422
run:
2523
shell: bash
2624

2725
steps:
2826
- name: Checkout
29-
uses: actions/checkout@v3
27+
uses: actions/checkout@v2
3028
with:
3129
submodules: true
32-
persist-credentials: true
30+
persist-credentials: false
3331

34-
- uses: actions/setup-go@v3
32+
- uses: actions/setup-go@v2
3533
with:
3634
go-version: "1.20"
3735

@@ -42,15 +40,14 @@ jobs:
4240
- name: Re-build proto
4341
run: |
4442
make install update-proto test
45-
4643
- name: Commit update
4744
env:
4845
GIT_AUTHOR_NAME: ${{ github.event.inputs.commit_author }}
4946
GIT_AUTHOR_EMAIL: ${{ github.event.inputs.commit_author_email }}
5047
GIT_COMMITTER_NAME: ${{ github.event.inputs.commit_author }}
5148
GIT_COMMITTER_EMAIL: ${{ github.event.inputs.commit_author_email }}
5249
run: |
53-
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
50+
git remote set-url origin https://x-access-token:${{ secrets.COMMANDER_DATA_TOKEN }}@github.com/${{ github.repository }}
5451
git add .
5552
git commit -m "${{ github.event.inputs.commit_message }}"
5653
if [ $? -eq 0 ]; then

0 commit comments

Comments
 (0)