Skip to content

Commit

Permalink
Switch to the official action for creating GitHub App token
Browse files Browse the repository at this point in the history
Previously, only third-party actions were available, but now that there
is an official one, it would be better to migrate.
https://github.com/actions/create-github-app-token
  • Loading branch information
minamijoyo committed Aug 2, 2024
1 parent dcbaab0 commit 43d19cf
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,18 @@ jobs:
with:
go-version-file: '.go-version'
- name: Generate github app token
id: generate_github_app_token
uses: tibdex/github-app-token@f717b5ecd4534d3c4df4ce9b5c1c2214f0f7cd06 # v1.6.0
uses: actions/create-github-app-token@31c86eb3b33c9b601a1f60f98dcbfd1d70f379b4 # v1.10.3
id: app-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
repository: minamijoyo/homebrew-tfupdate
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
repositories: homebrew-tfupdate
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.generate_github_app_token.outputs.token }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}

0 comments on commit 43d19cf

Please sign in to comment.