Skip to content

Mine CF Blog

Mine CF Blog #8084

Workflow file for this run

on:
schedule:
- cron: '40 */2 * * *'
workflow_dispatch: {}
name: Mine CF Blog
jobs:
runner:
runs-on: ubuntu-latest
timeout-minutes: 30
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 Blog
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
cd scripts
npm ci
npm run mine:blog
env:
DISCORD_WEBHOOK_BLOG: ${{ secrets.DISCORD_WEBHOOK_BLOG }}