diff --git a/.github/workflows/dbt_run-adhoc.yml b/.github/workflows/dbt_run-adhoc.yml deleted file mode 100644 index 68e76dc..0000000 --- a/.github/workflows/dbt_run-adhoc.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: dbt_run_ad_hoc_template - -on: - workflow_call: - inputs: - dbt_command: - type: string - description: 'dbt commands to run' - required: true - -jobs: - run_dbt_jobs: - runs-on: ubuntu-latest - environment: - name: workflow - strategy: - matrix: - msg: ${{fromJson(inputs.dbt_command)}} - - steps: - - uses: actions/checkout@v3 - - - uses: actions/setup-python@v1 - with: - python-version: "3.7.x" - - - name: install dependencies - run: | - pip3 install dbt-snowflake cli_passthrough requests click - dbt deps - - - name: Run DBT Jobs - run: | - ${{ matrix.msg }} - - \ No newline at end of file diff --git a/.github/workflows/dbt_run_scheduled.yml b/.github/workflows/dbt_run_scheduled.yml deleted file mode 100644 index 8b034b8..0000000 --- a/.github/workflows/dbt_run_scheduled.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: dbt_run - -on: - workflow_call: - inputs: - dbt_command: - type: string - description: 'dbt commands to run' - required: true - -env: - DBT_PROFILES_DIR: ./ - - ACCOUNT: "${{ secrets.ACCOUNT }}" - ROLE: "${{ secrets.ROLE }}" - USER: "${{ secrets.USER }}" - PASSWORD: "${{ secrets.PASSWORD }}" - REGION: "${{ secrets.REGION }}" - DATABASE_DEV: "${{ secrets.DATABASE_DEV }}" - DATABASE_PROD: "${{ secrets.DATABASE_PROD }}" - WAREHOUSE_DEV: "${{ secrets.WAREHOUSE_DEV }}" - WAREHOUSE_PROD: "${{ secrets.WAREHOUSE_PROD }}" - SCHEMA: "${{ secrets.SCHEMA }}" - -jobs: - scheduled_run: - name: dbt_run - runs-on: ubuntu-latest - environment: - name: workflow - - steps: - - uses: actions/checkout@v3 - - - uses: actions/setup-python@v1 - with: - python-version: "3.7.x" - - - name: install dependencies - run: | - pip install dbt-snowflake - dbt deps - - - name: Run DBT Jobs - run: | - ${{ inputs.dbt_command }} \ No newline at end of file diff --git a/.github/workflows/run_chain_template.yml b/.github/workflows/run_chain_template.yml deleted file mode 100644 index fe5e886..0000000 --- a/.github/workflows/run_chain_template.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: dbt_run - -on: - workflow_call: - inputs: - dbt_command: - type: string - description: 'dbt commands to run' - required: true - -env: - DBT_PROFILES_DIR: ./ - - ACCOUNT: "${{ secrets.ACCOUNT }}" - ROLE: "${{ secrets.ROLE }}" - USER: "${{ secrets.USER }}" - PASSWORD: "${{ secrets.PASSWORD }}" - REGION: "${{ secrets.REGION }}" - DATABASE_DEV: "${{ secrets.DATABASE_DEV }}" - DATABASE_PROD: "${{ secrets.DATABASE_PROD }}" - WAREHOUSE_DEV: "${{ secrets.WAREHOUSE_DEV }}" - WAREHOUSE_PROD: "${{ secrets.WAREHOUSE_PROD }}" - SCHEMA: "${{ secrets.SCHEMA }}" - -jobs: - scheduled_run: - name: dbt_run - runs-on: ubuntu-latest - environment: - name: workflow - - steps: - - uses: actions/checkout@v3 - - - uses: actions/setup-python@v1 - with: - python-version: "3.7.x" - - - name: install dependencies - run: | - pip3 install dbt-snowflake cli_passthrough requests click - dbt deps - - - name: Run DBT Jobs - run: | - ${{ inputs.dbt_command }} - - # - uses: actions/upload-artifact@v3 - # with: - # name: results_artifact - # path: ./target/run_results.json - - # - uses: actions/download-artifact@v3 - # with: - # name: results_artifact - - - name: Display structure of downloaded files - run: ls -R - - # - name: Run slack alert - # run: | - # ${{ inputs.slackd_command }} \ No newline at end of file