Scoop Buckets Sync #1312
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: Scoop Buckets Sync | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '1 0 * * *' | |
| jobs: | |
| sync: | |
| # runs-on: ubuntu-latest | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@main | |
| - uses: actions/setup-node@v3 | |
| with: | |
| node-version: 22 | |
| - name: Sync buckets | |
| run: | | |
| git fetch --all | |
| git checkout -b main origin/main || git checkout main | |
| copy .github/package.json . | |
| npm i --no-package-lock --no-audit --no-fund | |
| node .github/sync.mjs | |
| env: | |
| SYNC: 1 |