-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (33 loc) · 878 Bytes
/
tagpr.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# .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 != '' }}