Daily Commit by 23f1000537@ds.study.iitm.ac.in #49
This file contains hidden or 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: Daily Commit by 23f1000537@ds.study.iitm.ac.in | |
| on: | |
| schedule: | |
| # Run daily at 00:00 UTC (midnight) | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: # Allows manual triggering | |
| jobs: | |
| commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Step by 23f1000537@ds.study.iitm.ac.in - Create commit file | |
| run: | | |
| echo "Automated daily commit on $(date -u)" > daily-log.txt | |
| - name: Commit changes | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git add daily-log.txt | |
| git commit -m "Daily automated commit $(date -u)" | |
| git push |