Daily Commit #225
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 | |
| on: | |
| schedule: | |
| - cron: '0 7 * * *' # every day at 7 AM UTC | |
| workflow_dispatch: # allows manual trigger | |
| jobs: | |
| commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Make a change | |
| run: | | |
| echo "Last update: $(date -u)" >> activity.txt | |
| - name: Commit changes | |
| run: | | |
| git config --global user.name "Basil Latif" | |
| git config --global user.email "9244621+basillatif@users.noreply.github.com" | |
| git add activity.txt | |
| git commit -m "Daily commit" || echo "No changes to commit" | |
| git push |