Monthly Build #38
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: Monthly Build | |
# This workflow simply updates the .cache-buster file, which then: | |
# - triggers the docker build workflow for the image to be rebuilt | |
# - busts the docker build cache so each tool is built at its newest version | |
on: | |
schedule: | |
# run weekly | |
# - cron: '0 0 * * SUN' | |
# run monthly | |
- cron: '0 0 1 * *' | |
jobs: | |
build: | |
name: Monthly build | |
runs-on: ubuntu-latest | |
# Only run on the main branch of the main repo | |
if: ${{ github.repository == 'ethack/tht' && github.ref == 'refs/heads/main' }} | |
steps: | |
- | |
name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
# use a custom PAT in order to trigger other workflows with the push event | |
# https://github.com/stefanzweifel/git-auto-commit-action#commits-made-by-this-action-do-not-trigger-new-workflow-runs | |
token: ${{ secrets.GH_PAT }} | |
- | |
name: Overwrite .cache-buster | |
run: date --utc --rfc-email > .cache-buster | |
- | |
name: Push code | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Monthly build |