From 46c2b8bbf0a6fe780dca52250d07504f8c5abccd Mon Sep 17 00:00:00 2001 From: Chris Helma <25470211+chelma@users.noreply.github.com> Date: Thu, 18 Jan 2024 12:22:52 -0600 Subject: [PATCH] Added a GitHub Workflow to auto-tag commits (#156) Signed-off-by: Chris Helma --- .github/workflows/auto_tag.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/auto_tag.yml diff --git a/.github/workflows/auto_tag.yml b/.github/workflows/auto_tag.yml new file mode 100644 index 0000000..1e7dbfe --- /dev/null +++ b/.github/workflows/auto_tag.yml @@ -0,0 +1,26 @@ +name: Bump version +on: + pull_request: + types: + - closed + branches: + - main-test + +jobs: + build: + if: github.event.pull_request.merged == true + runs-on: ubuntu-22.04 + permissions: + contents: write + steps: + - uses: actions/checkout@v3 + with: + ref: ${{ github.event.pull_request.merge_commit_sha }} + fetch-depth: '0' + + - name: Bump version and push tag + uses: anothrNick/github-tag-action@1.64.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + DEFAULT_BUMP: minor + WITH_V: true \ No newline at end of file