Automated Empty Commit #2
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: Automated Empty Commit | |
on: | |
schedule: | |
- cron: '*/5 * * * *' # Every 5 minutes for testing | |
jobs: | |
make-empty-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 # Updated to v3 | |
with: | |
persist-credentials: false # Prevents automatic persisting of credentials | |
- name: Configure Git | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "github-actions@example.com" | |
- name: Make Empty Commit | |
run: | | |
git commit --allow-empty -m "Automated empty commit" | |
git push origin HEAD:master |