Skip to content

Tag Iteration Ends

Tag Iteration Ends #29

name: Tag Iteration Ends
on:
schedule: # 0400 UTC next day (end of US day)
# Dates from 2024 release calendar
- cron: '0 4 10 2 *'
- cron: '0 4 2 3 *'
- cron: '0 4 23 3 *'
- cron: '0 4 13 4 *'
- cron: '0 4 11 5 *'
- cron: '0 4 2 6 *'
- cron: '0 4 22 6 *'
- cron: '0 4 13 7 *'
- cron: '0 4 3 8 *'
- cron: '0 4 24 8 *'
- cron: '0 4 14 9 *'
- cron: '0 4 5 10 *'
- cron: '0 4 2 11 *'
- cron: '0 4 30 11 *'
- cron: '0 4 28 12 *'
workflow_dispatch:
jobs:
tag:
name: tag-iteration-ends
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get last date of iteration
id: date
run: echo "date=$(date -u --date yesterday +'%m%d')" >> $GITHUB_OUTPUT
- name: Create tag
run: |
git tag ${{ format('date-{0}', steps.date.outputs.date) }}
git push origin ${{ format('date-{0}', steps.date.outputs.date) }}