Skip to content

Clean CI Schemas

Clean CI Schemas #507

name: Clean CI Schemas
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
clean_snowflake_ci_schemas:
runs-on: ubuntu-latest
defaults:
run:
working-directory: data/
environment: test
env:
MELTANO_ENVIRONMENT: cicd
MELTANO_SEND_ANONYMOUS_USAGE_STATS: 'false'
CI_BRANCH: 'b${{ github.SHA }}'
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.8'
cache: 'pip'
- run: pip install -r requirements.txt
- run: echo "${{secrets.MELTANO_ENV_FILE }}" > .env
# Add SSH key for accessing private dbt package repo
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.GIT_SSH_PRIVATE_KEY }}
- run: meltano install utility dbt-snowflake
- run: meltano invoke dbt-snowflake run-operation clear_ci_schemas