From eadf2654e2714c63427e1df161bb68622cdc8bb1 Mon Sep 17 00:00:00 2001 From: Nick Burgan Date: Tue, 2 Apr 2024 14:47:57 -0700 Subject: [PATCH] Add tagging action --- .github/workflows/tag.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/tag.yaml diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml new file mode 100644 index 00000000..4eedb435 --- /dev/null +++ b/.github/workflows/tag.yaml @@ -0,0 +1,27 @@ +name: Tag Repo + +on: + workflow_dispatch: + inputs: + commit_sha: + description: 'Commit SHA' + required: true + default: 'HEAD' + + version: + description: 'The version for this release, matching the CiviForm release version, e.g. v1.2.3' + required: true + +jobs: + tag: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Tag the repo + run: | + git config user.email "github-actions[bot]@users.noreply.github.com" + git config user.name "github-actions[bot]" + git tag ${{ github.event.inputs.version }} --message "${{ github.event.inputs.version }}" + git push origin ${{ github.event.inputs.version }}