diff --git a/.github/workflows/tagpr.yaml b/.github/workflows/tagpr.yaml index f41f53b..848527d 100644 --- a/.github/workflows/tagpr.yaml +++ b/.github/workflows/tagpr.yaml @@ -11,14 +11,20 @@ jobs: uses: actions/setup-go@v3 with: go-version: 1.x + - name: Generate token + id: generate_token + uses: tibdex/github-app-token@v1 + with: + app_id: ${{ secrets.APP_ID }} + private_key: ${{ secrets.PRIVATE_KEY }} - name: checkout uses: actions/checkout@v3 with: - token: ${{ secrets.GH_PAT }} - - id: tagpr + token: ${{ steps.generate_token.outputs.token }} + - name: tagpr run: | make install echo '::echo::on' tagpr env: - GITHUB_TOKEN: ${{ secrets.GH_PAT }} + GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} diff --git a/README.md b/README.md index 48d7724..798fe38 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ tagpr [license]: https://github.com/Songmu/tagpr/blob/main/LICENSE [PkgGoDev]: https://pkg.go.dev/github.com/Songmu/tagpr -The `tagpr` automatically creates and updates a pull request for unreleased items, tag them when they are merged, and create releases. +The `tagpr` clarify the release flow. It automatically creates and updates a pull request for unreleased items, tag them when they are merged, and create releases. ## Synopsis @@ -57,7 +57,7 @@ By using `tagpr`, the release flow can be visible and the maintainer can simply ## Configuration -Describe the settings in the .tagpr file directly under the repository. This is automatically created the first time tagpr is run, but feel free to adjust it. The following configuration items are available +Describe the settings in the .tagpr file directly under the repository in gitconfig format. This is automatically created the first time tagpr is run, but feel free to adjust it. The following configuration items are available ### tagpr.releaseBranch Generally, it is "main." It is the branch for releases. The pcpr tracks this branch,