File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 8181 PYTHON_VERSION : " 3.10"
8282 WORKFLOW_BRANCH : " new_deployment_no_ports"
8383 POSTGRES_HOSTNAME : postgres_${{ inputs.branch }}_${{ github.run_id }}
84+ GH_ACTIONS_SELF_HOSTED_NETWORK_NAME : $GH_ACTIONS_SELF_HOSTED_NETWORK_NAME
8485
8586permissions :
8687 contents : read
@@ -171,8 +172,8 @@ jobs:
171172
172173 steps :
173174 - name : Connect service to default network
174- if : startsWith(runner.name, 'GitHub Actions') == false # self-hosted runner have random name, unlike default name: Github Actions*
175- run : docker network connect $GH_ACTIONS_SELF_HOSTED_NETWORK_NAME ${{ env.POSTGRES_HOSTNAME }}
175+ if : env.GH_ACTIONS_SELF_HOSTED_NETWORK_NAME != ''
176+ run : docker network connect ${{ env. GH_ACTIONS_SELF_HOSTED_NETWORK_NAME }} ${{ env.POSTGRES_HOSTNAME }}
176177 - name : Checkout source repository
177178 uses : actions/checkout@v4
178179 with :
@@ -273,8 +274,8 @@ jobs:
273274
274275 steps :
275276 - name : Connect service to default network
276- if : startsWith(runner.name, 'GitHub Actions') == false
277- run : docker network connect $GH_ACTIONS_SELF_HOSTED_NETWORK_NAME ${{ env.POSTGRES_HOSTNAME }}
277+ if : env.GH_ACTIONS_SELF_HOSTED_NETWORK_NAME != ''
278+ run : docker network connect ${{ env. GH_ACTIONS_SELF_HOSTED_NETWORK_NAME }} ${{ env.POSTGRES_HOSTNAME }}
278279 - name : Checkout source repository
279280 uses : actions/checkout@v4
280281 with :
You can’t perform that action at this time.
0 commit comments