Skip to content

Merge pull request #147 from mashiike/dependabot/go_modules/github.co… #44

Merge pull request #147 from mashiike/dependabot/go_modules/github.co…

Merge pull request #147 from mashiike/dependabot/go_modules/github.co… #44

Workflow file for this run

# .github/workflows/tagpr.yml
name: tagpr
on:
push:
branches: ["main"]
jobs:
tagpr:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- id: tagpr
uses: Songmu/tagpr@v1
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.19
- uses: mashiike/action-gocredits@v0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
if: "steps.tagpr.outputs.tag == ''"
- name: Checkout
uses: actions/checkout@v4
if: ${{ steps.tagpr.outputs.tag != '' }}
with:
ref: ${{ steps.tagpr.outputs.tag }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release
if: ${{ steps.tagpr.outputs.tag != '' }}