Automated Empty Commit #348
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: '0 0 * * *' # At 00:00 (midnight) UTC every day | |
permissions: | |
contents: write # Grant permission to write to the repository | |
jobs: | |
make-empty-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: pip install -r requirements_github_actions.txt | |
- 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 |