Skip to content

Automatic monthly tag with format v0.0.yyMM #4

Automatic monthly tag with format v0.0.yyMM

Automatic monthly tag with format v0.0.yyMM #4

Workflow file for this run

name: Automatic monthly tag with format v0.0.yyMM
on:
schedule:
# At 00:00 on the first day of each month
- cron: '0 0 1 * *'
jobs:
tag:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Generate a new tag and push it
run: |
TAG="v0.0.$(date +%y%m)"
git tag $TAG
git push origin $TAG