fix: add full bee version with commit for bee-js update (#104)

This commit is contained in:
Adam Uhlíř 2022-05-10 10:43:46 +02:00 committed by GitHub
parent c033758f3d
commit b11aab3d3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -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 }}"}'

View File

@ -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