heartbeat #1
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: 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 "[email protected]" | |
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" |