Skip to content

.github/workflows/autotag.yml #38

.github/workflows/autotag.yml

.github/workflows/autotag.yml #38

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: Determine tag
id: determine_tag
run: |
current_tag=$(git describe --tags --abbrev=0)
echo "tag=${current_tag%%-*}-$(date +%s)" >> $GITHUB_OUTPUT
- name: Push tag
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
git tag ${{ steps.determine_tag.outputs.tag }}
git push origin ${{ steps.determine_tag.outputs.tag }}