diff --git a/.github/workflows/releaser.yml b/.github/workflows/releaser.yml index 8474f20..e07cb8d 100644 --- a/.github/workflows/releaser.yml +++ b/.github/workflows/releaser.yml @@ -19,7 +19,7 @@ jobs: run: | pattern="^Release v[0-9]+.[0-9]+.[0-9]+ #(minor|major|patch)$" if [[ "${{ github.event.head_commit.message }}" =~ ${pattern} ]]; then - echo ::set-output name=match::true + echo match=true >> $GITHUB_OUTPUT fi create-tag: runs-on: ubuntu-latest @@ -28,13 +28,13 @@ jobs: outputs: new_tag: ${{ steps.tagger.outputs.new_tag }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: - fetch-depth: '0' + fetch-depth: "0" - name: Bump version and push tag id: tagger - uses: anothrNick/github-tag-action@1.36.0 + uses: anothrNick/github-tag-action@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} WITH_V: true @@ -46,21 +46,21 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v5 with: - go-version: 1.19 + go-version: "1.22" - name: Run GoReleaser - uses: goreleaser/goreleaser-action@v2 + uses: goreleaser/goreleaser-action@v6 with: distribution: goreleaser version: latest - args: release --rm-dist + args: release --clean env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}