Auto Update Repo #8
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: Auto Update Repo | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| workflow_dispatch: | |
| jobs: | |
| auto-commit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Update Timestamp | |
| run: | | |
| echo "Last sync: $(date)" > update_log.txt | |
| - name: Commit and Push | |
| run: | | |
| # Mengatur nama bot di log git | |
| git config --global user.name "Eliaszn AI" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| git add update_log.txt | |
| # Menggunakan pesan commit custom kamu | |
| git commit -m "Auto Update by Eliaszn AI" || exit 0 | |
| git push |