Skip to content

Auto Tag

Auto Tag #1

Workflow file for this run

name: Auto Tag
on:
schedule:
- cron: "1 12 * * 5"
jobs:
tag:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create tag
id: create_tag
run: echo "tag=$(git describe --tags --abbrev=0)-${{ github.run_number }}" >> $GITHUB_OUTPUT
- name: Push tag
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git tag ${{ steps.create_tag.outputs.tag }}
git push origin ${{ steps.create_tag.outputs.tag }}