From f33476a5a3fd5a4f77cb5eef2ebe728c1dd5b921 Mon Sep 17 00:00:00 2001 From: "Vincent A. Cicirello" Date: Fri, 15 Sep 2023 16:45:27 -0400 Subject: [PATCH] Create fix-major-release-num.yml --- .github/workflows/fix-major-release-num.yml | 25 +++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/fix-major-release-num.yml diff --git a/.github/workflows/fix-major-release-num.yml b/.github/workflows/fix-major-release-num.yml new file mode 100644 index 0000000..79d0ca9 --- /dev/null +++ b/.github/workflows/fix-major-release-num.yml @@ -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 'cicirello@users.noreply.github.com' + git tag -fa ${{ github.event.inputs.MAJOR }} -m "Update major version tag" ${{ github.event.inputs.COMMIT }} + git push origin ${{ github.event.inputs.MAJOR }} --force