-
-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (32 loc) · 926 Bytes
/
Copy pathauto-tag.yml
File metadata and controls
37 lines (32 loc) · 926 Bytes
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
name: Auto Tag
on:
push:
branches:
- master
- main
permissions:
actions: write
contents: write
jobs:
tag:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip tag]')"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Bump version and push tag
id: tag_action
uses: anothrNick/github-tag-action@1.71.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true
DEFAULT_BUMP: patch
PRERELEASE: false
- name: Trigger release workflow for new tag
if: ${{ steps.tag_action.outputs.new_tag != '' }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NEW_TAG: ${{ steps.tag_action.outputs.new_tag }}
run: gh workflow run release.yml --repo "${{ github.repository }}" -f release_ref="$NEW_TAG"