-
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (35 loc) · 1.08 KB
/
Copy pathauto-tag.yml
File metadata and controls
42 lines (35 loc) · 1.08 KB
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: Auto-Tag on Release Merge
on:
pull_request:
types: [closed]
branches:
- master
permissions:
contents: write
pull-requests: write
concurrency:
group: auto-tag-${{ github.event.pull_request.base.ref }}
cancel-in-progress: false
jobs:
create-tag:
name: Create Tag
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'release/')
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout merge commit
uses: actions/checkout@v7
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.merge_commit_sha }}
token: ${{ secrets.PAT_TOKEN }}
- name: Extract and validate version
id: version
uses: ./.github/actions/determine-version
- name: Create Tag Action
id: create_tag_action
uses: rickstaa/action-create-tag@v1
with:
commit_sha: ${{ github.event.pull_request.merge_commit_sha }}
github_token: ${{ secrets.PAT_TOKEN }}
tag: ${{ steps.version.outputs.tag }}