Skip to content

Commit

Permalink
Create fix-major-release-num.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cicirello committed Sep 15, 2023
1 parent 59b9b07 commit f33476a
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/fix-major-release-num.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Move Major Release Tag to a Commit

on:
workflow_dispatch:
inputs:
MAJOR:
description: 'Major version'
required: true
COMMIT:
description: 'Move to this commit'
required: true

jobs:
movetag:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Get major version num and update tag
run: |
git config --global user.name 'Vincent A Cicirello'
git config --global user.email '[email protected]'
git tag -fa ${{ github.event.inputs.MAJOR }} -m "Update major version tag" ${{ github.event.inputs.COMMIT }}
git push origin ${{ github.event.inputs.MAJOR }} --force

0 comments on commit f33476a

Please sign in to comment.