Skip to content

add cron job to delete indexes every 24 hours #1

add cron job to delete indexes every 24 hours

add cron job to delete indexes every 24 hours #1

Workflow file for this run

name: 'Cleanup test resources'
on:
workflow_dispatch: {}
schedule:
- cron: '0 0 * * *'
jobs:
cleanup:
name: Delete all indexes and collections in sdk-node-testing project
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
- name: Cleanup
run:
env:
PINECONE_API_KEY: ${{ secrets.PINECONE_API_KEY }}
PINECONE_ENVIRONMENT: ${{ secrets.PINECONE_ENVIRONMENT }}