-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1023 Bytes
/
set-version.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
42
43
name: Prepare Release Tag
on:
push:
tags:
- "[0-9].[0-9].[0-9]"
jobs:
build:
name: Prepare Release Tag
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: master
token: ${{ secrets.PAT }}
- name: Set Version
run: ./scripts/set-version.sh ${{ github.ref_name }}
- name: Commit new version
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: master
tagging_message: v.${{ github.ref_name }}
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: master
token: ${{ secrets.PAT }}
- uses: rickstaa/action-create-tag@v1
id: "tag_create"
with:
tag: "v.${{ github.ref_name }}"
tag_exists_error: false
message: "Release version: ${{ github.ref_name }}"
token: ${{ secrets.PAT }}
env:
GITHUB_TOKEN: ${{ secrets.PAT }}