Skip to content

Commit

Permalink
ci: tidy up
Browse files Browse the repository at this point in the history
  • Loading branch information
nabeken committed Aug 25, 2024
1 parent a71bd7d commit 3ae9461
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Get GITHUB_TOKEN for release
uses: nabeken/go-github-apps@afd4a1da8d2eafaa6902580a943dc17dfd055ba9 # v0
id: go-github-apps
- uses: actions/create-github-app-token@v1
id: app-token
with:
app_id: ${{ secrets.release_gh_app_id }}
installation_id: ${{ secrets.release_gh_app_inst_id }}
private_key: ${{ secrets.release_gh_app_priv_key }}
app-id: ${{ secrets.release_gh_app_id }}
private-key: ${{ secrets.release_gh_app_priv_key }}

- uses: googleapis/release-please-action@7987652d64b4581673a76e33ad5e98e3dd56832f # v4
with:
release-type: go
token: ${{ steps.go-github-apps.outputs.app_github_token }}
token: ${{ steps.app-token.outputs.token }}
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Set up Go 1.20.x
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5
with:
go-version: '${{ env.GO_VERSION }}'
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5
with:
go-version: '${{ env.GO_VERSION }}'
id: go

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6
with:
Expand Down

0 comments on commit 3ae9461

Please sign in to comment.