diff --git a/.github/workflows/heartbeat.yaml b/.github/workflows/heartbeat.yaml new file mode 100644 index 0000000..efe0c27 --- /dev/null +++ b/.github/workflows/heartbeat.yaml @@ -0,0 +1,19 @@ +name: heartbeat +on: + schedule: + - cron: "0 2 1 * *" + +jobs: + heartbeat: + name: heartbeat + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Commit heartbeat + run: | + git config --local user.email "actions@github.com" + git config --local user.name "GitHub Actions" + date > .heartbeat + git add .heartbeat + git commit -m "Keep GHA alive `date`" || echo "No changes to commit" + git push || echo "No changes to commit"