Cleanup test env #517
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |