70 create reporting view with most recent boundaries #12
Workflow file for this run
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-dbt-resources | |
on: | |
pull_request: | |
branches: [master] | |
types: [closed] | |
jobs: | |
cleanup-dbt-resources: | |
runs-on: ubuntu-latest | |
# These permissions are needed to interact with GitHub's OIDC Token endpoint | |
# so that we can authenticate with AWS | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install dbt requirements | |
uses: ./.github/actions/install_dbt_requirements | |
- name: Install requirements for cleaning up dbt resources | |
run: sudo apt-get update && sudo apt-get install jq | |
shell: bash | |
- name: Load environment variables | |
uses: ./.github/actions/load_environment_variables | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v2 | |
with: | |
role-to-assume: ${{ secrets.AWS_IAM_ROLE_TO_ASSUME_ARN }} | |
aws-region: us-east-1 | |
- name: Configure dbt environment | |
uses: ./.github/actions/configure_dbt_environment | |
- name: Clean up dbt resources | |
run: ../.github/scripts/cleanup_dbt_resources.sh ci | |
working-directory: ${{ env.PROJECT_DIR }} | |
shell: bash |