update-mirror.yml 597 B

12345678910111213141516171819202122232425
  1. name: Update Mirror
  2. on:
  3. schedule:
  4. - cron: '0 0 * * *' # Runs daily at midnight UTC
  5. workflow_dispatch: # Allows manual trigger
  6. jobs:
  7. update-mirror:
  8. runs-on: ubuntu-latest
  9. steps:
  10. - name: Checkout repository
  11. uses: actions/checkout@v4
  12. with:
  13. fetch-depth: 0
  14. token: ${{ secrets.GITHUB_TOKEN }}
  15. - name: Configure Git
  16. run: |
  17. git config user.name "github-actions[bot]"
  18. git config user.email "github-actions[bot]@users.noreply.github.com"
  19. - name: Run update mirror script
  20. run: ./update-mirror