Skip to content

Commit 7da08f9

Browse files
committed
Fix the permission issue in the sync release workflow
1 parent 7a20971 commit 7da08f9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/sync-release-to-master.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ jobs:
2929
git merge ${{ github.sha }} --ff-only
3030
git push
3131
32+
- name: Connect with gh auth login
33+
run: echo "${{ steps.app-token.outputs.token }}" | gh auth login --with-token;
34+
3235
- name: Publish release
3336
run: |
3437
VERSION=$(echo ${{ github.head_ref }} | sed 's/release-//')
35-
echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
3638
gh release edit v$VERSION --draft=false
3739
- name: Change back branch rule to not require up-to-date branch
3840
run: |

0 commit comments

Comments
 (0)