Skip to content

Mine CF Zero Trust Dashboard #17153

Mine CF Zero Trust Dashboard

Mine CF Zero Trust Dashboard #17153

on:
schedule:
- cron: '45 * * * *'
workflow_dispatch: {}
name: Mine CF Zero Trust Dashboard
jobs:
runner:
runs-on: ubuntu-latest
timeout-minutes: 10
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 ZT dashboard
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
cd scripts
npm ci
npm run mine:zt-dashboard -- --no-write
env:
CLOUDFLARE_EMAIL: ${{ secrets.CLOUDFLARE_EMAIL }}
CLOUDFLARE_PASSWORD: ${{ secrets.CLOUDFLARE_PASSWORD }}
DISCORD_WEBHOOK_ZEROTRUST: ${{ secrets.DISCORD_WEBHOOK_ZEROTRUST }}