Skip to content

[MANIFEST] Set up a workflow to test clearing cache on the notify website post a deploy #3

[MANIFEST] Set up a workflow to test clearing cache on the notify website post a deploy

[MANIFEST] Set up a workflow to test clearing cache on the notify website post a deploy #3

Workflow file for this run

name: Clear Cache
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
inputs:
reason:
description: "Reason for manual trigger"
required: true
default: "Testing"
jobs:
call-api:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: "14"
- name: Install dependencies
run: npm install jsonwebtoken axios
- name: Call API to clear cache
env:
CACHE_CLEAR_USER_NAME: ${{ secrets.STAGING_CACHE_CLEAR_USER_NAME }}
CACHE_CLEAR_CLIENT_SECRET: ${{ secrets.STAGING_CACHE_CLEAR_CLIENT_SECRET }}
run: node scripts/clearcache.js