Skip to content

Clean Astra env

Clean Astra env #217

name: Clean Astra env
on:
workflow_dispatch: {}
schedule:
- cron: '*/30 * * * *'
jobs:
e2e-tests:
name: Clean Astra env (${{ matrix.name }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: Astra PROD
astra_token_secret: E2E_TESTS_ASTRA_PROD_DB_TOKEN
env: PROD
- name: Astra DEV
astra_token_secret: E2E_TESTS_ASTRA_DEV_DB_TOKEN
env: DEV
steps:
- uses: actions/checkout@v3
- name: Clean DBs
env:
TERM: linux
ASTRA_TOKEN: "${{ secrets[matrix.astra_token_secret] }}"
ASTRA_ENV: "${{ matrix.env }}"
run: |
set -e
(curl -Ls "https://dtsx.io/get-astra-cli" | bash) || true
export ASTRA_BIN=/home/runner/.astra/cli/astra
./scripts/clean-astra-env.sh