Skip to content

Update 2023-10-27-sre-load-increase.md #78

Update 2023-10-27-sre-load-increase.md

Update 2023-10-27-sre-load-increase.md #78

name: detect-sensitive-content
on:
push:
branches:
- master
paths:
- 'blog/src/_posts/**'
schedule:
- cron: '0 0 * * *'
env:
CONTENT_PATH: ${{ vars.CONTENT_PATH }}
WHITELIST_DOMAINS: ${{ vars.WHITELIST_DOMAINS }}
EMAIL_USER: ${{ secrets.EMAIL_USER }}
EMAIL_PASS: ${{ secrets.EMAIL_PASS }}
EMAIL_TO: ${{ secrets.EMAIL_TO }}
jobs:
build:
name: Build on node ${{ matrix.node_version }} and ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest]
node_version: [16.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v3.4.1
with:
node-version: ${{ matrix.node_version }}
cache: 'npm'
- name: Install dependencies
if: steps.restore.outputs.cache-hit != 'true'
run: npm install
working-directory: .
- name: Excute Script
run: |
NODE_ENV=ci npm run detect-sensitive-content
working-directory: .