Skip to content

Cleanup test env

Cleanup test env #520

name: 'Cleanup test env'
on:
workflow_dispatch: {} # workflow can be run manually
schedule:
- cron: "0 3 * * *" # workflow runs every day at 03:00 AM
jobs:
clenup-test-env-general:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
with:
sparse-checkout: |
scripts
- uses: mongodb/atlas-github-action@15663d068c40a8582d881560961fce9d45e0df9a
- name: Cleanup cloud-dev CFN Test GitHub
shell: bash
env:
MONGODB_ATLAS_PUBLIC_KEY: ${{ secrets.CLOUD_DEV_PUBLIC_KEY }}
MONGODB_ATLAS_PRIVATE_KEY: ${{ secrets.CLOUD_DEV_PRIVATE_KEY }}
MONGODB_ATLAS_ORG_ID: ${{ secrets.CLOUD_DEV_ORG_ID }}
MONGODB_ATLAS_OPS_MANAGER_URL: ${{ vars.MONGODB_ATLAS_BASE_URL }}
PROJECT_TO_NOT_DELETE: ${{ vars.CLOUD_DEV_PROJECT_ID }}
run: ./scripts/cleanup-test-env.sh