Skip to content

Commit

Permalink
Bump tag version on merge into main (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall authored Oct 30, 2023
1 parent fd62eeb commit 40cf50d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Create release
on:
pull_request_target:
branches:
- main
types:
- closed
permissions:
contents: write
jobs:
release:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: install autotag binary
run: curl -sL https://git.io/autotag-install | sudo sh -s -- -b /usr/bin
- name: create release
run: |-
TAG=$(autotag)
git tag $TAG
git push origin $TAG
gh release create $TAG
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 40cf50d

Please sign in to comment.