File tree Expand file tree Collapse file tree 1 file changed +4
-11
lines changed
Expand file tree Collapse file tree 1 file changed +4
-11
lines changed Original file line number Diff line number Diff line change 8080 PYPI_USERNAME : " datavisyn"
8181 PYTHON_VERSION : " 3.10"
8282 WORKFLOW_BRANCH : " new_deployment_no_ports"
83- # POSTGRES_HOSTNAME: postgres_${{ env.BRANCH_SAFE }}_${{ github.run_id }}
83+ POSTGRES_HOSTNAME : postgres_${{ inputs.branch }}_${{ github.run_id }}
8484
8585permissions :
8686 contents : read
8787 id-token : write
8888
8989jobs :
90- setup :
91- runs-on : ${{ inputs.runs_on }}
92- steps :
93- - name : Generate safe branch name for unique hostname
94- run : echo "BRANCH_SAFE=$(echo ${{ inputs.branch }} | sed 's/[^a-zA-Z0-9]/-/g' | head -c 20)" >> "$GITHUB_ENV"
95- - name : Set POSTGRES_HOSTNAME
96- run : echo "POSTGRES_HOSTNAME=postgres_${{ env.BRANCH_SAFE }}_${{ github.run_id }}" >> "$GITHUB_ENV"
9790 build-node :
9891 name : Node
9992 if : ${{ (!inputs.cypress_enable || (!inputs.cypress_run_because_flag && inputs.cypress_run_because_branch != 'true')) && (!inputs.playwright_enable || (!inputs.playwright_run_because_flag && inputs.playwright_run_because_branch != 'true')) }}
@@ -174,8 +167,8 @@ jobs:
174167 --health-interval 10s
175168 --health-timeout 5s
176169 --health-retries 5
177- --name postgres_${{ env.BRANCH_SAFE }}_${{ github.run_id }}
178-
170+ --name postgres_${{ inputs.branch }}_${{ github.run_id }}
171+
179172 steps :
180173 - name : Set system env variable to github env
181174 run : echo "GH_ACTIONS_SELF_HOSTED_NETWORK_NAME=${GH_ACTIONS_SELF_HOSTED_NETWORK_NAME}" >> "$GITHUB_ENV"
@@ -278,7 +271,7 @@ jobs:
278271 --health-interval 10s
279272 --health-timeout 5s
280273 --health-retries 5
281- --name postgres_${{ env.BRANCH_SAFE }}_${{ github.run_id }}
274+ --name postgres_${{ inputs.branch }}_${{ github.run_id }}
282275
283276 steps :
284277 - name : Set system env variable to github env
You can’t perform that action at this time.
0 commit comments