build(deps): bump elysia from 1.4.19 to 1.4.26 #22
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tag Release | |
| on: | |
| pull_request: | |
| types: [closed] | |
| branches: [main] | |
| jobs: | |
| tag: | |
| if: | | |
| github.event.pull_request.merged == true && | |
| startsWith(github.event.pull_request.title, '🔖 chore(release):') | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| ref: main | |
| - name: Get version from package.json | |
| id: version | |
| run: | | |
| VERSION=$(jq -r '.version' apps/bot/package.json) | |
| echo "VERSION=v$VERSION" >> $GITHUB_OUTPUT | |
| echo "Creating tag: v$VERSION" | |
| - name: Check if tag exists | |
| id: check_tag | |
| run: | | |
| if git rev-parse "${{ steps.version.outputs.VERSION }}" >/dev/null 2>&1; then | |
| echo "exists=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "exists=false" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Create and push tag | |
| if: steps.check_tag.outputs.exists == 'false' | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git tag -a ${{ steps.version.outputs.VERSION }} -m "Release ${{ steps.version.outputs.VERSION }}" | |
| git push origin ${{ steps.version.outputs.VERSION }} | |
| - name: Tag already exists | |
| if: steps.check_tag.outputs.exists == 'true' | |
| run: echo "Tag ${{ steps.version.outputs.VERSION }} already exists, skipping" |