Skip to content

Commit

Permalink
add catch
Browse files Browse the repository at this point in the history
  • Loading branch information
VersusFacit committed Mar 31, 2024
1 parent 8b1d538 commit 17226db
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/internal-archive-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ jobs:
with:
repository: "${{ inputs.org }}/dbt-${{ inputs.dbms_name }}"
ref: "${{ inputs.ref || 'main' }}"
path: "dbt-${{ inputs.dbms_name }}"

- name: "Validate patch version input against patch version of ref"
id: validate_version
Expand Down Expand Up @@ -132,6 +133,7 @@ jobs:
with:
repository: "${{ inputs.org }}/dbt-${{ inputs.dbms_name}}"
ref: "${{ inputs.ref || 'main' }}"
path: "dbt-${{ inputs.dbms_name }}"

- name: "Set up Python - ${{ env.PYTHON_TARGET_VERSION }}"
uses: actions/setup-python@v5
Expand Down Expand Up @@ -162,6 +164,7 @@ jobs:
with:
repository: "${{ inputs.org }}/dbt-${{ inputs.dbms_name}}"
ref: "${{ inputs.ref || 'main' }}"
path: "dbt-${{ inputs.dbms_name }}"

- name: "Setup `hatch`"
uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main
Expand Down Expand Up @@ -190,6 +193,7 @@ jobs:
with:
repository: "${{ inputs.org }}/dbt-${{ inputs.dbms_name}}"
ref: "${{ inputs.ref || 'main' }}"
path: "dbt-${{ inputs.dbms_name }}"

- name: "Setup Environment Variables - ./scripts/env-setup.sh"
run: |
Expand Down Expand Up @@ -262,20 +266,24 @@ jobs:
runs-on: ubuntu-latest
needs: [initial-setup, job-setup, run-integration-tests-tox, run-integration-tests-hatch]
# Build artifact if
# 1. Spark invoked (it runs tests via its in-repo workflow)
# 2. Integration tests passed at least via one job above
# 1. Setup jobs succeeded
# 2a. Tests can be skipped
# 2b. One of the integration test sets passed (these only run on passing unit tests)
if: |
always() && (
needs.initial-setup.outputs.skip_tests == 'true' ||
(needs.run-integration-tests-tox.result == 'success' || needs.run-integration-tests-hatch.result == 'success')
)
always() &&
needs.job-setup.result == 'success' &&
(
needs.initial-setup.outputs.skip_tests == 'true' ||
(needs.run-integration-tests-tox.result == 'success' || needs.run-integration-tests-hatch.result == 'success')
)
steps:
- name: "Checkout provided ref, default to branch main"
uses: actions/checkout@v4
with:
repository: "${{ inputs.org }}/dbt-${{ inputs.dbms_name}}"
ref: "${{ inputs.ref || 'main' }}"
path: "dbt-${{ inputs.dbms_name }}"

- name: "Set up Python - ${{ env.PYTHON_TARGET_VERSION }}"
uses: actions/setup-python@v5
Expand Down

0 comments on commit 17226db

Please sign in to comment.