Skip to content

release: 0.0.36

release: 0.0.36 #6

Workflow file for this run

name: Auto Tag
on: [push]
permissions:
contents: write
jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# parse version from git log like `release: 0.0.35`
- name: Get version
id: version
run: |
echo VERSION=$(git log --pretty=oneline -1 | grep -oP 'release: \\K[0-9.]+') >> $GITHUB_ENV
# create & push tag
- name: Create & push tag
if: $VERSION != ''

Check failure on line 19 in .github/workflows/autotag.yml

View workflow run for this annotation

GitHub Actions / Auto Tag

Invalid workflow file

The workflow is not valid. .github/workflows/autotag.yml (Line: 19, Col: 13): Unexpected symbol: '$VERSION'. Located at position 1 within expression: $VERSION != ''
run: |
git tag v$VERSION
git push origin v$VERSION