Skip to content

Commit

Permalink
fix: token name
Browse files Browse the repository at this point in the history
  • Loading branch information
nickfrosty committed Nov 25, 2024
1 parent 1351f02 commit 5e92757
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/label-actions.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
name: "Label Actions"

env:
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}

on:
issues:
types: [labeled, unlabeled]
Expand All @@ -15,5 +12,5 @@ jobs:
steps:
- uses: dessant/label-actions@v3
with:
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
config-path: .github/label-actions.yml
6 changes: 3 additions & 3 deletions .github/workflows/prettier-label-action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Prettier Formatting on Label

env:
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}

on:
pull_request:
Expand All @@ -18,7 +18,7 @@ jobs:
with:
ref: ${{ github.head_ref }}
# Use a token that allows pushing to the PR branch
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}

# Setup Node.js (required for Prettier)
- uses: actions/setup-node@v4
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
if: always()
uses: actions/github-script@v7
with:
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.removeLabel({
owner: context.repo.owner,
Expand Down

0 comments on commit 5e92757

Please sign in to comment.