-
Notifications
You must be signed in to change notification settings - Fork 14
32 lines (28 loc) · 1.06 KB
/
generate-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
name: Generate-Tag
on:
push:
branches:
- master
jobs:
generate-tag:
name: Generate tag
runs-on: ${{ vars.RUNNER_UBUNTU && fromJSON(vars.RUNNER_UBUNTU) || 'ubuntu-latest' }}
steps:
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: '0'
- name: Checkout github-tag-action
uses: actions/checkout@v4
with:
repository: ${{ vars.GENERATE_TAG_REPO || 'anothrNick/github-tag-action' }}
ref: ${{ vars.GENERATE_TAG_REF || '1.62.0' }}
path: ./.github/action${{ vars.GENERATE_TAG_PATH || '/github-tag-action/' }}
token: ${{ vars.GENERATE_TAG_SECRET && secrets[vars.GENERATE_TAG_SECRET] || secrets.GITHUB_TOKEN }}
# If no #major, #minor or #patch tag is contained in the commit messages,
# it will bump whichever DEFAULT_BUMP is set to (which is minor by default).
- name: Bump version and push tag
uses: ./.github/action/github-tag-action
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true