-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (31 loc) · 923 Bytes
/
tag.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
35
36
---
name: Tag
on:
push:
branches: [main, release-*]
jobs:
tag:
name: Tag release commit
if: "${{ startsWith(github.event.head_commit.message, 'release: ') }}"
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
with:
go-version: stable
cache: true
- name: Configure git
env:
AUTHOR_EMAIL: ${{ github.event.head_commit.author.email }}
AUTHOR_NAME: ${{ github.event.head_commit.author.name }}
run: |
git config --local user.email "${AUTHOR_EMAIL}"
git config --local user.name "${AUTHOR_NAME}"
- name: Tag commit
run: |
make build
build/linux/gotagger -push