Skip to content

Commit 40646b1

Browse files
authored
Add GitHub action to auto-update the v1 tag (#53)
Create release.yml
1 parent 94177e5 commit 40646b1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/release.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release new action version
2+
3+
on:
4+
release:
5+
types: [released]
6+
workflow_dispatch:
7+
inputs:
8+
TAG_NAME:
9+
description: 'Tag name that the major tag will point to'
10+
required: true
11+
12+
env:
13+
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
14+
15+
jobs:
16+
update_tag:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- uses: actions/[email protected]
24+
with:
25+
source-tag: ${{ env.TAG_NAME }}

0 commit comments

Comments
 (0)