Skip to content

Commit

Permalink
Merge pull request #284 from hasundue/ci-update-use-pat
Browse files Browse the repository at this point in the history
☕ Fix update workflow
  • Loading branch information
lambdalisue committed Oct 23, 2023
2 parents 37196f1 + 5cd855a commit 67d77af
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
- cron: "0 0 * * *"
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
update:
runs-on: ubuntu-latest
Expand All @@ -19,8 +15,8 @@ jobs:
deno-version: 1.x
- name: Configure Git
run: |
git config user.name '${{ github.actor }}'
git config user.email '${{ github.actor }}@users.noreply.github.com'
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
- name: Update dependencies and commit changes
run: deno task -q upgrade:commit --summary title.txt --report body.md
- name: Check result
Expand All @@ -37,4 +33,4 @@ jobs:
gh pr create --title "$(cat title.txt)" --body "$(cat body.md)"
--label "automation" --head "automation/update-dependencies"
env:
GITHUB_TOKEN: ${{ github.token }}
GITHUB_TOKEN: ${{ secrets.PA_TOKEN }}

0 comments on commit 67d77af

Please sign in to comment.