From b11aab3d3cf954b78405d64b8b5d929780948995 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Tue, 10 May 2022 10:43:46 +0200 Subject: [PATCH] fix: add full bee version with commit for bee-js update (#104) --- .github/workflows/publish.yaml | 2 +- generator/scripts/build-environment.sh | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 5701570..9d5e467 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -128,4 +128,4 @@ jobs: token: ${{ secrets.REPO_GHA_PAT }} repository: ethersphere/bee-js event-type: update-bee - client-payload: '{"imageVersion": "${{ steps.publish.outputs.bee-version }}", "apiVersion": "${{ steps.build.outputs.api-version }}", "debugApiVersion": "${{ steps.build.outputs.debug-api-version }}"}' + client-payload: '{"imageVersion": "${{ steps.build.outputs.full-version }}", "apiVersion": "${{ steps.build.outputs.api-version }}", "debugApiVersion": "${{ steps.build.outputs.debug-api-version }}"}' diff --git a/generator/scripts/build-environment.sh b/generator/scripts/build-environment.sh index 98104c4..165adeb 100755 --- a/generator/scripts/build-environment.sh +++ b/generator/scripts/build-environment.sh @@ -120,6 +120,12 @@ if $GEN_TRAFFIC ; then # This sets output parameter in Github Actions that # is then used to trigger Bee-js PR creation if [ "$CI" == 'true' ]; then + echo "Image version tag will be extracted from the bee version command..." + docker pull "$BEE_VERSION" + FULL_BEE_VERSION=$(docker run --rm "$BEE_VERSION" version 2>&1) + echo "Extracted Bee version: $FULL_BEE_VERSION" + echo "::set-output name=full-version::$FULL_BEE_VERSION" + npm run setApiVersions "$GEN_TRAFFIC_CHECKER_NODE_DEBUG" fi