From 143645e6ab302bb77be96c563b3e175ba670e8bf Mon Sep 17 00:00:00 2001 From: TANABE Ken-ichi Date: Sun, 25 Aug 2024 15:45:34 +0900 Subject: [PATCH] ci: tidy up --- .github/workflows/release-please.yml | 11 +++++------ .github/workflows/release.yml | 12 ++++++------ 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 03a483f..a5335b9 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -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 }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 136b9e4..40a795f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: