|
42 | 42 | DB_NAME: ${{ vars.QA_POSTGRE_SQL_DB_NAME }} |
43 | 43 | ENVIRONMENT: ${{ vars.QA_MOBILITY_FEEDS_ENVIRONMENT }} |
44 | 44 | DB_ENVIRONMENT: ${{ vars.QA_MOBILITY_FEEDS_ENVIRONMENT }} |
45 | | - DRY_RUN: ${{ github.event_name == 'repository_dispatch' || inputs.DRY_RUN }} |
| 45 | + # With repository_dispatch, DRY_RUN is always false. |
| 46 | + # With workflow_dispatch we take the specified values of DRY_RUN. |
| 47 | + DRY_RUN: ${{ (github.event_name != 'repository_dispatch' && inputs.DRY_RUN) }} |
46 | 48 | CHECKOUT_REF: ${{ needs.resolve-api-meta-qa.outputs.CHECKOUT_REF }} |
47 | 49 | secrets: |
48 | 50 | DB_USER_PASSWORD: ${{ secrets.QA_POSTGRE_USER_PASSWORD }} |
|
79 | 81 | DB_NAME: ${{ vars.PROD_POSTGRE_SQL_DB_NAME }} |
80 | 82 | ENVIRONMENT: ${{ vars.PROD_MOBILITY_FEEDS_ENVIRONMENT }} |
81 | 83 | DB_ENVIRONMENT: ${{ vars.PROD_MOBILITY_FEEDS_ENVIRONMENT }} |
82 | | - DRY_RUN: ${{ github.event_name == 'repository_dispatch' || inputs.DRY_RUN }} |
| 84 | + # With repository_dispatch, DRY_RUN is always false. |
| 85 | + # With workflow_dispatch we take the specified values of DRY_RUN. |
| 86 | + DRY_RUN: ${{ (github.event_name != 'repository_dispatch' && inputs.DRY_RUN) }} |
83 | 87 | CHECKOUT_REF: ${{ needs.resolve-api-meta-prod.outputs.CHECKOUT_REF }} |
84 | 88 | secrets: |
85 | 89 | DB_USER_PASSWORD: ${{ secrets.PROD_POSTGRE_USER_PASSWORD }} |
@@ -117,7 +121,9 @@ jobs: |
117 | 121 | ENVIRONMENT: ${{ vars.DEV_MOBILITY_FEEDS_ENVIRONMENT }} |
118 | 122 | # dev uses the QA sql instance |
119 | 123 | DB_ENVIRONMENT: ${{ vars.QA_MOBILITY_FEEDS_ENVIRONMENT }} |
120 | | - DRY_RUN: ${{ github.event_name == 'repository_dispatch' || inputs.DRY_RUN }} |
| 124 | + # With repository_dispatch, DRY_RUN is always false. |
| 125 | + # With workflow_dispatch we take the specified values of DRY_RUN. |
| 126 | + DRY_RUN: ${{ (github.event_name != 'repository_dispatch' && inputs.DRY_RUN) }} |
121 | 127 | CHECKOUT_REF: ${{ needs.resolve-api-meta-dev.outputs.CHECKOUT_REF }} |
122 | 128 | secrets: |
123 | 129 | DB_USER_PASSWORD: ${{ secrets.DEV_POSTGRE_USER_PASSWORD }} |
|
0 commit comments