From dd6773831a776dc0b2d9112c27489bc6304637bf Mon Sep 17 00:00:00 2001 From: Joerg Reichert Date: Wed, 21 Jun 2023 22:34:30 +0200 Subject: [PATCH] use envs --- .github/workflows/docker-test.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/docker-test.yml b/.github/workflows/docker-test.yml index 6325345..e5542ca 100644 --- a/.github/workflows/docker-test.yml +++ b/.github/workflows/docker-test.yml @@ -24,11 +24,10 @@ jobs: timeout: 30000 - name: Extract run: | - extracted = $(curl --location 'http://localhost:8081/api/address/extract' --header 'Content-Type: text/plain' --data '${{ github.event.inputs.text_to_be_geolocate }}') - echo "extracted=$extracted" >> $GITHUB_OUTPUT + echo "EXTRACTED=$(curl --location 'http://localhost:8081/api/address/extract' --header 'Content-Type: text/plain' --data '${{ github.event.inputs.text_to_be_geolocate }}')" >> $GITHUB_ENV - name: "echo location" run: | - echo "Output [${{steps.Extract.outputs.extracted}}]" + echo "Output ${{ env.EXTRACTED }}" - name: DockerLocator run: docker-compose -f "docker/location-locator.yml" up -d --build - name: Wait on @@ -38,8 +37,7 @@ jobs: timeout: 30000 - name: Locate run: | - located = $(curl --location 'http://localhost:8082/api/locations/locate?location=S%C3%BCdplatz') - echo "located=$located" >> $GITHUB_OUTPUT + echo "LOCATED=$(curl --location 'http://localhost:8082/api/locations/locate?location=S%C3%BCdplatz')" >> $GITHUB_ENV - name: "echo coords" run: | - echo "Output [${{steps.Locate.outputs.located}}]" \ No newline at end of file + echo "Output ${{ env.LOCATED }}"