Skip to content

Commit f35d309

Browse files
authored
Merge pull request #1517 from pypa/major-dot-minor-tag
Add workflow that updates a vX.Y tag on release
2 parents 3160e8d + 012ae48 commit f35d309

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Update the vX.Y tag
2+
3+
on:
4+
release:
5+
types: [released]
6+
workflow_dispatch:
7+
inputs:
8+
TAG_NAME:
9+
description: 'Tag name that the major.minor 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+
name: Update the major.minor tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
18+
environment:
19+
name: releaseNewActionVersion
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: write
23+
steps:
24+
- uses: actions/checkout@v3
25+
26+
- name: Update the ${{ env.TAG_NAME }} tag
27+
id: update-major-minor-tag
28+
uses: joerick/[email protected]
29+
with:
30+
source-tag: ${{ env.TAG_NAME }}

0 commit comments

Comments
 (0)