Update Tags #1541
This file contains hidden or 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: Update Tags | |
| on: | |
| # Run at midnight every day | |
| schedule: | |
| - cron: '0 0 * * *' | |
| jobs: | |
| update: | |
| name: Update Tags | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v3 | |
| - name: update tags | |
| run: make update | |
| - name: get date | |
| id: date | |
| run: echo "::set-output name=date::$(date --rfc-3339=seconds)" | |
| - name: check for update | |
| id: diff | |
| run: echo "::set-output name=diff::$(git diff --name-only data/)" | |
| - name: push | |
| uses: actions-x/commit@v5 | |
| with: | |
| name: Tag Update Bot | |
| files: data/tags doc/helpful-version.txt | |
| message: Auto-updated tags ${{ steps.date.outputs.date }} | |
| if: ${{ steps.diff.outputs.diff != '' }} |