Skip to content

Commit

Permalink
Merge pull request #12 from ajanis/chore/use-action
Browse files Browse the repository at this point in the history
Use github action
  • Loading branch information
Teagan42 authored Mar 19, 2024
2 parents 8942042 + f452383 commit bd8d8e2
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/tag-on-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}'

0 comments on commit bd8d8e2

Please sign in to comment.