-
Notifications
You must be signed in to change notification settings - Fork 102
41 lines (36 loc) · 991 Bytes
/
AutoTag.yml
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
name: AutoTag
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches:
- dev
- master
paths-ignore:
- 'docs/**'
- "howto/**"
- "*.md"
- ".clang-format"
jobs:
build:
name: Build
runs-on: ubuntu-latest
env:
version: 23.10.01
version-suffix: alpha
prerelease: true
steps:
- uses: actions/checkout@v3
- name: set git short sha
id: vars
run: |
echo "sha_short=$(git rev-parse --short=8 HEAD)" >> $GITHUB_OUTPUT
echo "release_hm=$(date +'%y%m%d')" >> $GITHUB_OUTPUT
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{env.version}}-${{env.version-suffix}}.${{ steps.vars.outputs.sha_short }}