2021-04-21 18:45:34 +01:00
|
|
|
# This is a basic workflow to help you get started with Actions
|
|
|
|
|
|
|
|
name: Cleanup End to End Account Resources
|
|
|
|
|
|
|
|
on:
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
|
|
|
# Once every hour
|
2021-05-28 15:16:36 +01:00
|
|
|
- cron: "0 15 * * *"
|
2021-04-21 18:45:34 +01:00
|
|
|
|
|
|
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
|
|
|
jobs:
|
|
|
|
# This workflow contains a single job called "build"
|
|
|
|
cleanupaccounts:
|
|
|
|
name: "Cleanup Test Database Accounts"
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
NOTEBOOKS_TEST_RUNNER_CLIENT_ID: ${{ secrets.NOTEBOOKS_TEST_RUNNER_CLIENT_ID }}
|
|
|
|
NOTEBOOKS_TEST_RUNNER_CLIENT_SECRET: ${{ secrets.NOTEBOOKS_TEST_RUNNER_CLIENT_SECRET }}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2023-12-13 18:24:40 +00:00
|
|
|
- name: Use Node.js 18.x
|
2021-04-21 18:45:34 +01:00
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
2023-12-13 18:24:40 +00:00
|
|
|
node-version: 18.x
|
2021-04-21 18:45:34 +01:00
|
|
|
- run: npm ci
|
|
|
|
- run: node utils/cleanupDBs.js
|