Skip to content

Commit

Permalink
Rename deduplication-id to deduplication_id
Browse files Browse the repository at this point in the history
  • Loading branch information
puehringer committed May 8, 2024
1 parent e6a6ebb commit 2fae667
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build-node-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ on:
type: string
required: false
default: "ubuntu-22.04-large"
deduplication-id:
deduplication_id:
type: string
required: false
description: Unique id per workflow run. Must be set to unique value if dispatched multiple times for a single workflow.
Expand Down Expand Up @@ -97,7 +97,7 @@ env:
PYPI_USERNAME: "datavisyn"
PYTHON_VERSION: "3.10"
WORKFLOW_BRANCH: "main"
POSTGRES_HOSTNAME: postgres_${{ github.job }}_${{ inputs.deduplication-id }}_${{ github.run_id }}_${{ github.run_attempt }}
POSTGRES_HOSTNAME: postgres_${{ github.job }}_${{ inputs.deduplication_id }}_${{ github.run_id }}_${{ github.run_attempt }}

permissions:
contents: write
Expand Down Expand Up @@ -191,7 +191,7 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
--name postgres_${{ github.job }}_${{ inputs.deduplication-id }}_${{ github.run_id }}_${{ github.run_attempt }}
--name postgres_${{ github.job }}_${{ inputs.deduplication_id }}_${{ github.run_id }}_${{ github.run_attempt }}
ports:
# will assign a random free host port
- 5432/tcp
Expand All @@ -203,10 +203,10 @@ jobs:
if: env.GH_ACTIONS_SELF_HOSTED_NETWORK_NAME != ''
run: |
{
echo "POSTGRES_HOSTNAME=postgres_${{ github.job }}_${{ inputs.deduplication-id }}_${{ github.run_id }}_${{ github.run_attempt }}"
echo "POSTGRES_HOSTNAME=postgres_${{ github.job }}_${{ inputs.deduplication_id }}_${{ github.run_id }}_${{ github.run_attempt }}"
echo "POSTGRES_PORT=5432"
} >> "$GITHUB_ENV"
docker network connect ${{ env.GH_ACTIONS_SELF_HOSTED_NETWORK_NAME }} "postgres_${{ github.job }}_${{ inputs.deduplication-id }}_${{ github.run_id }}_${{ github.run_attempt }}"
docker network connect ${{ env.GH_ACTIONS_SELF_HOSTED_NETWORK_NAME }} "postgres_${{ github.job }}_${{ inputs.deduplication_id }}_${{ github.run_id }}_${{ github.run_attempt }}"
- name: Set postgres connection details to hosted runner
if: env.GH_ACTIONS_SELF_HOSTED_NETWORK_NAME == ''
run: |
Expand Down Expand Up @@ -308,7 +308,7 @@ jobs:
--health-interval 10s
--health-timeout 5s
--health-retries 5
--name postgres_${{ github.job }}_${{ inputs.deduplication-id }}_${{ github.run_id }}_${{ github.run_attempt }}
--name postgres_${{ github.job }}_${{ inputs.deduplication_id }}_${{ github.run_id }}_${{ github.run_attempt }}
ports:
# will assign a random free host port
- 5432/tcp
Expand All @@ -320,7 +320,7 @@ jobs:
if: env.GH_ACTIONS_SELF_HOSTED_NETWORK_NAME != ''
run: |
{
echo "POSTGRES_HOSTNAME=postgres_${{ github.job }}_${{ inputs.deduplication-id }}_${{ github.run_id }}_${{ github.run_attempt }}"
echo "POSTGRES_HOSTNAME=postgres_${{ github.job }}_${{ inputs.deduplication_id }}_${{ github.run_id }}_${{ github.run_attempt }}"
echo "POSTGRES_PORT=5432"
} >> "$GITHUB_ENV"
docker network connect ${{ env.GH_ACTIONS_SELF_HOSTED_NETWORK_NAME }} ${{ env.POSTGRES_HOSTNAME }}
Expand Down

0 comments on commit 2fae667

Please sign in to comment.