Skip to content

Commit

Permalink
Use GH token with write perms
Browse files Browse the repository at this point in the history
  • Loading branch information
NotRyken authored May 23, 2024
1 parent 65e520a commit 3d36064
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ on:
jobs:
sync:
runs-on: ubuntu-latest
env:
LABEL_SYNC_TOKEN: ${{ secrets.LABEL_SYNC_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -22,5 +20,4 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 22
- run: npx github-label-sync -a '${{ secrets.LABEL_SYNC_TOKEN }}' -l '.github/labels.yml' ${{ github.repository }}
if: env.LABEL_SYNC_TOKEN != null
- run: npx github-label-sync -a '${{ secrets.GITHUB_TOKEN }}' -l '.github/labels.yml' ${{ github.repository }}

0 comments on commit 3d36064

Please sign in to comment.