Skip to content

Commit aa25bae

Browse files
fixed condition
1 parent 545637c commit aa25bae

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build-node-python.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ env:
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
8584

8685
permissions:
8786
contents: read
@@ -171,6 +170,8 @@ jobs:
171170
--name postgres_${{ inputs.branch }}_${{ github.run_id }}
172171
173172
steps:
173+
- name: Set system env variable to github env
174+
run: echo "GH_ACTIONS_SELF_HOSTED_NETWORK_NAME=${GH_ACTIONS_SELF_HOSTED_NETWORK_NAME}" >> $GITHUB_ENV
174175
- name: Connect service to default network
175176
if: env.GH_ACTIONS_SELF_HOSTED_NETWORK_NAME != ''
176177
run: docker network connect ${{ env.GH_ACTIONS_SELF_HOSTED_NETWORK_NAME }} ${{ env.POSTGRES_HOSTNAME }}
@@ -273,6 +274,8 @@ jobs:
273274
--name postgres_${{ inputs.branch }}_${{ github.job }}
274275
275276
steps:
277+
- name: Set system env variable to github env
278+
run: echo "GH_ACTIONS_SELF_HOSTED_NETWORK_NAME=${GH_ACTIONS_SELF_HOSTED_NETWORK_NAME}" >> $GITHUB_ENV
276279
- name: Connect service to default network
277280
if: env.GH_ACTIONS_SELF_HOSTED_NETWORK_NAME != ''
278281
run: docker network connect ${{ env.GH_ACTIONS_SELF_HOSTED_NETWORK_NAME }} ${{ env.POSTGRES_HOSTNAME }}

0 commit comments

Comments
 (0)