Skip to content

Commit

Permalink
Test running deploy-dbt-docs workflow on PR branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jeancochrane committed Aug 9, 2023
1 parent ee4a760 commit 6399239
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/actions/configure_dbt_environment/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ runs:
echo "CACHE_KEY=data-catalog";
echo "HEAD_REF=data-catalog";
} >> "$GITHUB_ENV"
elif [[ $GITHUB_REF_NAME == '34-data-catalog-define-github-actions-workflow-for-rebuilding-and-deploying-docs-site' ]]; then
echo "On dbt docs branch, setting dbt env to CI"
echo "TARGET=ci";
echo "CACHE_KEY=$GITHUB_REF_NAME";
echo "HEAD_REF=$GITHUB_REF_NAME"
} >> "$GITHUB_ENV"
else
echo "CI context did not match any of the expected environments"
exit 1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test_dbt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
pull_request:
branches: [master, data-catalog]
push:
branches: [master, data-catalog]
branches: [master, data-catalog, 34-data-catalog-define-github-actions-workflow-for-rebuilding-and-deploying-docs-site]

jobs:
build-and-test-dbt:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_dbt_docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: deploy-dbt-docs
on:
workflow_run:
workflows: [build-and-test-dbt]
branches: [master, data-catalog]
branches: [master, data-catalog, 34-data-catalog-define-github-actions-workflow-for-rebuilding-and-deploying-docs-site]
types: [completed]
workflow_dispatch:

Expand Down

0 comments on commit 6399239

Please sign in to comment.