Skip to content

Commit

Permalink
ci(update): use PAT to create a pull request to trigger CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hasundue committed Oct 23, 2023
1 parent 188ffeb commit 23555b7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Configure Git
run: |
git config --global user.name '${{ github.actor }}'
git config --global 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: Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- name: Checkout
uses: actions/checkout@v4

- name: Cache dependencies
run: deno task cache

Expand All @@ -38,7 +38,7 @@ jobs:
id: result
uses: andstor/file-existence-action@v2
with:
files: "title.txt, body.md"
files: title.txt, body.md

- name: Push changes
if: steps.result.outputs.files_exists == 'true'
Expand All @@ -50,4 +50,4 @@ jobs:
gh pr create --title "$(cat title.txt)" --body "$(cat body.txt)"
--head build/update-dependencies
env:
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ secrets.PAT_UPDATE }}

0 comments on commit 23555b7

Please sign in to comment.