Skip to content

Merge pull request #176 from joshuafolkken/173-fix-auto-tag-workflow #27

Merge pull request #176 from joshuafolkken/173-fix-auto-tag-workflow

Merge pull request #176 from joshuafolkken/173-fix-auto-tag-workflow #27

Workflow file for this run

name: Auto Tag on Version Change
on:
push:
branches: [main]
paths: [project.godot]
jobs:
auto-tag:
runs-on: ubuntu-latest
permissions:
contents: write
outputs:
tag_created: ${{ steps.auto_tag.outputs.tag_created }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Auto Tag script
id: auto_tag
run: |
chmod +x .github/scripts/auto_tag.sh
if .github/scripts/auto_tag.sh; then
echo "tag_created=true" >> $GITHUB_OUTPUT
else
echo "tag_created=false" >> $GITHUB_OUTPUT
fi
echo "tag_created=$tag_created" >> $GITHUB_OUTPUT
- name: Print tag creation status
run: |
echo "Tag created: ${{ steps.auto_tag.outputs.tag_created }}"
- name: Trigger next workflow
if: steps.auto_tag.outputs.tag_created == 'true'
uses: peter-evans/repository-dispatch@v2
with:
event-type: new-tag-created