Mirror OpenAction Plugins #13
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: Mirror OpenAction Plugins | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| workflow_dispatch: {} | |
| jobs: | |
| mirror: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout infra repo | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install requests | |
| - name: Restore mirrors cache | |
| uses: actions/cache/restore@v4 | |
| with: | |
| path: mirrors/ | |
| key: mirrors | |
| - name: Run sync | |
| env: | |
| MIRROR_PAT: ${{ secrets.MIRROR_PAT }} | |
| run: | | |
| python sync.py | |
| - name: Save mirrors cache | |
| uses: actions/cache/save@v4 | |
| with: | |
| path: mirrors/ | |
| key: mirrors |