weekly-post #14
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: weekly-post | |
| on: | |
| schedule: | |
| - cron: "0 0 * * 0" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| post: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Git config | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Create temp file | |
| run: | | |
| echo "Last updated at $(date -u)" > _temp | |
| - name: Commit temp file | |
| run: | | |
| git add _temp | |
| git commit -m "posts:: weekly post timestamp updated" || echo "Nothing to commit" | |
| - name: Push temp file | |
| run: | | |
| git push origin HEAD |