Skip to content

Cleanup

Cleanup #3414

Workflow file for this run

# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: 'Cleanup'
on:
schedule:
- cron: '0 */6 * * *'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: ci
run: npm ci
- name: Configure 1Password Service Account
uses: 1password/load-secrets-action/configure@v1
with:
service-account-token: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
- name: Load Secrets
uses: 1password/load-secrets-action@v1
with:
unset-previous: false
export-env: true
env:
GSHEET_CLIENT_EMAIL: "op://service-account/github.actions/GSHEET_CLIENT_EMAIL"
GSHEET_PRIVATE_KEY: "op://service-account/github.actions/GSHEET_PRIVATE_KEY"
TEST_SPREADSHEET_ID: "op://service-account/github.actions/TEST_SPREADSHEET_ID"
- name: cleanup
run: npm run cleanup
env:
GSHEET_CLIENT_EMAIL: ${{ env.GSHEET_CLIENT_EMAIL }}
GSHEET_PRIVATE_KEY: ${{ env.GSHEET_PRIVATE_KEY }}
TEST_SPREADSHEET_ID: ${{ env.TEST_SPREADSHEET_ID }}