Mine CF CDN CGI #65722
This file contains 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
on: | |
schedule: | |
- cron: '*/15 * * * *' | |
workflow_dispatch: {} | |
name: Mine CF CDN CGI | |
jobs: | |
runner: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Restore NPM cache | |
uses: actions/cache@v4 | |
continue-on-error: true | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('scripts/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Mine CDN CGI | |
run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<>" | |
cd scripts | |
npm ci | |
npm run mine:cdn-cgi && npm run mine:cdn-cgi-dev && npm run mine:cdn-cgi-files && npm run mine:cdn-cgi-other | |
env: | |
DISCORD_URL: ${{ secrets.DISCORD_URL }} | |
DISCORD_WEBHOOK_CDNCGI: ${{ secrets.DISCORD_WEBHOOK_CDNCGI }} | |
DISCORD_WEBHOOK_CDNCGI_DEV: ${{ secrets.DISCORD_WEBHOOK_CDNCGI_DEV }} | |
DISCORD_WEBHOOK_CDNCGI_OTHER: ${{ secrets.DISCORD_WEBHOOK_CDNCGI_OTHER }} | |
FETCH_FROM_COLO_URL: ${{ secrets.FETCH_FROM_COLO_URL }} | |
FETCH_FROM_COLO_MULTI_URL: ${{ secrets.FETCH_FROM_COLO_MULTI_URL }} | |
FETCH_CANARY_URL: ${{ secrets.FETCH_CANARY_URL }} | |
FETCH_UK_URL: ${{ secrets.FETCH_UK_URL }} | |
FETCH_FR_SG_URL: ${{ secrets.FETCH_FR_SG_URL }} | |
FETCH_TX_URL: ${{ secrets.FETCH_TX_URL }} | |
FETCH_SG_URL: ${{ secrets.FETCH_SG_URL }} |