Skip to content

Commit fa2e159

Browse files
committed
Added INSTALL_LATEST for manual trigger so it's somewhat testable.
1 parent c2738d1 commit fa2e159

File tree

3 files changed

+4
-14
lines changed

3 files changed

+4
-14
lines changed

.github/workflows/db-update-dev.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ jobs:
3131
# We want to use the currently installed version (not the latest) if we received a dispatch from
3232
# mobility_database_catalog.
3333
# For a workflow_dispatch (manual trigger), we use the value set by the user.
34-
INSTALL_LATEST: ${{
35-
(github.event_name == 'repository_dispatch' && false) ||
36-
(github.event_name == 'workflow_dispatch' && inputs.INSTALL_LATEST)
37-
} }
34+
INSTALL_LATEST: ${{ (github.event_name == 'repository_dispatch' && false) || (github.event_name == 'workflow_dispatch' && inputs.INSTALL_LATEST) }}
3835

3936
secrets:
4037
DB_USER_PASSWORD: ${{ secrets.DEV_POSTGRE_USER_PASSWORD }}

.github/workflows/db-update-prod.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,8 @@ jobs:
3333
# We want to use the latest version if the trigger was workflow_call, because currently it's used for
3434
# upgrading (e.g. release.yml)
3535
# For a workflow_dispatch (manual trigger), we use the value set by the user.
36-
INSTALL_LATEST: ${{
37-
(github.event_name == 'repository_dispatch' && false) ||
38-
(github.event_name == 'workflow_call' && true) ||
39-
(github.event_name == 'workflow_dispatch' && inputs.INSTALL_LATEST)
40-
}}
36+
INSTALL_LATEST: ${{ (github.event_name == 'repository_dispatch' && false) || (github.event_name == 'workflow_call' && true) || (github.event_name == 'workflow_dispatch' && inputs.INSTALL_LATEST) }}
37+
4138
secrets:
4239
DB_USER_PASSWORD: ${{ secrets.PROD_POSTGRE_USER_PASSWORD }}
4340
DB_USER_NAME: ${{ secrets.PROD_POSTGRE_USER_NAME }}

.github/workflows/db-update-qa.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ jobs:
3030
# We want to use the latest version if the trigger was workflow_call, because currently it's used for
3131
# upgrading (e.g. release.yml)
3232
# For a workflow_dispatch (manual trigger), we use the value set by the user.
33-
INSTALL_LATEST: ${{
34-
(github.event_name == 'repository_dispatch' && false) ||
35-
(github.event_name == 'workflow_call' && true) ||
36-
(github.event_name == 'workflow_dispatch' && inputs.INSTALL_LATEST)
37-
}}
33+
INSTALL_LATEST: ${{ (github.event_name == 'repository_dispatch' && false) || (github.event_name == 'workflow_call' && true) || (github.event_name == 'workflow_dispatch' && inputs.INSTALL_LATEST) }}
3834

3935
secrets:
4036
DB_USER_PASSWORD: ${{ secrets.QA_POSTGRE_USER_PASSWORD }}

0 commit comments

Comments
 (0)