Skip to content

Commit

Permalink
Merge pull request #1517 from pypa/major-dot-minor-tag
Browse files Browse the repository at this point in the history
Add workflow that updates a vX.Y tag on release
  • Loading branch information
joerick committed Jun 10, 2023
2 parents 3160e8d + 012ae48 commit f35d309
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/update-major-minor-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Update the vX.Y tag

on:
release:
types: [released]
workflow_dispatch:
inputs:
TAG_NAME:
description: 'Tag name that the major.minor tag will point to'
required: true

env:
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}

jobs:
update_tag:
name: Update the major.minor tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
environment:
name: releaseNewActionVersion
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3

- name: Update the ${{ env.TAG_NAME }} tag
id: update-major-minor-tag
uses: joerick/update-vX.Y-tag-action@v1.0
with:
source-tag: ${{ env.TAG_NAME }}

0 comments on commit f35d309

Please sign in to comment.