Skip to content

Mine CF CDN CGI

Mine CF CDN CGI #58607

Workflow file for this run

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: 20
- 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 }}