Skip to content

Release: v1.6.5

Release: v1.6.5 #19

Workflow file for this run

name: "(Tag): Create"
on:
pull_request:
types: [closed]
branches:
- main
jobs:
create-tag:
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'tag/v')
runs-on: ubuntu-latest
steps:
- name: Checkout main
uses: actions/checkout@v4
with:
ref: main
- name: Get version from composer.json
id: version
run: |
VERSION=$(jq -r .version composer.json)
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Create tag
run: |
git config user.name "code-snippets-bot"
git config user.email "[email protected]"
git tag "${{ steps.version.outputs.version }}"
git push origin "${{ steps.version.outputs.version }}"