Skip to content

Commit

Permalink
Add autotag
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Nov 18, 2024
1 parent ef6122c commit ab37ef1
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
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
actions: 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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
"require" : {
"drupal/turnstile": "^1"
}
}
}

0 comments on commit ab37ef1

Please sign in to comment.