TagIt #204
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: TagIt | |
on: | |
schedule: | |
- cron: '0 0 * * 1' # Every Monday | |
jobs: | |
tag: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Get tag for the current date | |
id: tag_info | |
run: echo "TAG_NAME=$(date +'v%Y.%m.%d')" >> $GITHUB_OUTPUT | |
- name: Tag the latest commit | |
uses: weareyipyip/walking-tag-action@v2 | |
with: | |
tag-name: ${{ steps.tag_info.outputs.TAG_NAME }} | |
tag-message: "" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |