Skip to content

Commit

Permalink
Add conditional if on deployment of sa and be
Browse files Browse the repository at this point in the history
  • Loading branch information
minottic committed Apr 1, 2022
1 parent 6ac6b65 commit d1effec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/scicat-be.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
backend/**
set_ci_vars:
if: needs.check_changed.outputs.changed == 'true'
if: (needs.check_changed.outputs.changed == 'true' && !needs.set_env.outputs.component) || needs.set_env.outputs.component == 'be'
runs-on: ubuntu-latest
needs:
- check_changed
Expand Down Expand Up @@ -53,7 +53,7 @@ jobs:
echo "::set-output name=ciVars::$(echo $ciVars)"
build_deploy_scicat_be:
if: needs.check_changed.outputs.changed == 'true'
if: (needs.check_changed.outputs.changed == 'true' && !needs.set_env.outputs.component) || needs.set_env.outputs.component == 'be'
needs:
- check_changed
- set_env
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scicat-search-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
search-api/**
build_deploy_scicat_search_api:
if: needs.check_changed.outputs.changed == 'true' || needs.set_env.outputs.component == 'sa'
if: (needs.check_changed.outputs.changed == 'true' && !needs.set_env.outputs.component) || needs.set_env.outputs.component == 'sa'
needs:
- check_changed
- set_env
Expand Down

0 comments on commit d1effec

Please sign in to comment.