-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (37 loc) · 962 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
37
38
39
40
41
42
name: tag_bump
on:
push:
branches:
- "main"
permissions:
contents: write
packages: write
deployments: write
jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Check out code
with:
fetch-depth: '0'
# Verify only golang or Docker files have changed before we bump
- name: Get changed files
id: changed_files
uses: tj-actions/changed-files@v45
with:
files_yaml: |
golang:
- '**/*.go'
- 'go.*'
- '.goreleaser.yml'
docker:
- 'Dockerfile'
- 'goreleaser.Dockerfile'
- name: Bump version and push tag
uses: mathieudutour/github-tag-action@v6.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release_branches: main
default_bump: patch
custom_release_rules: "bug:patch:Bug Fixes"