12345678910111213141516171819202122232425 |
- name: Update Mirror
- on:
- schedule:
- - cron: '0 0 * * *' # Runs daily at midnight UTC
- workflow_dispatch: # Allows manual trigger
- jobs:
- update-mirror:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
- token: ${{ secrets.GITHUB_TOKEN }}
- - name: Configure Git
- run: |
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
- - name: Run update mirror script
- run: ./update-mirror
|