From f452383e44bd8b69426ae23f843def66df7bb357 Mon Sep 17 00:00:00 2001 From: Teagan Glenn Date: Tue, 19 Mar 2024 02:35:29 -0600 Subject: [PATCH] Use github action --- .github/workflows/tag-on-merge.yml | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/.github/workflows/tag-on-merge.yml b/.github/workflows/tag-on-merge.yml index cacc6f7..6f2165a 100644 --- a/.github/workflows/tag-on-merge.yml +++ b/.github/workflows/tag-on-merge.yml @@ -4,14 +4,14 @@ name: Tag on Merge on: - pull_request: - branches: - - master - types: - - closed - # push: + # pull_request: # branches: - # - main + # - master + # types: + # - closed + push: + branches: + - main env: CI: true @@ -43,12 +43,7 @@ jobs: WITH_V: 'true' DEFAULT_BUMP: ${{ env.BUMP }} - name: Commit Package Version - id: commit - shell: bash - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git tag -a "${{ env.NEW_TAG }}" -m "${{ env.NEW_TAG }}" - git push --tags - env: - NEW_TAG: ${{ steps.new_version.outputs.new_tag}} + uses: actions-ecosystem/action-push-tag@v1 + with: + tag: ${{steps.new_version.outputs.new_tag}} + message: '${{ steps.new_version.outputs.new_tagn }}: PR #${{ github.event.pull_request.number }} ${{ github.event.pull_request.title }}'