Skip to content

Commit

Permalink
Use GitHub App for auto patch tagging
Browse files Browse the repository at this point in the history
  • Loading branch information
mumoshu committed Dec 24, 2024
1 parent dbb872a commit beb9697
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/auto_patch_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,20 @@ on:
# Run every day at 4:30 UTC = 13:30 JST
- cron: '30 4 * * *'

permissions:
contents: write

jobs:
auto_patch_release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- uses: actions/setup-go@v5
- run: |
cd ./tools/autotagpatch
go run .
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}

0 comments on commit beb9697

Please sign in to comment.