From deb445f46225610ee77cc0a127cbfb5ae9c8f2c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Mon, 11 Jul 2022 11:56:48 +0200 Subject: [PATCH] ci: update bee version trigger event name (#175) --- .github/workflows/publish.yaml | 6 +++++- package.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 0599cdd..1682540 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -103,6 +103,10 @@ jobs: field: engines.bee value: ${{ env.BEE_VERSION }} + - name: Add trailing new-line to package.json + if: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.tag != 'latest' }} + run: printf "\n" >> package.json + - name: Create/update PR if: ${{ github.event_name == 'repository_dispatch' && github.event.client_payload.tag != 'latest' }} uses: gr2m/create-or-update-pull-request-action@v1 @@ -122,4 +126,4 @@ jobs: token: ${{ secrets.REPO_GHA_PAT }} repository: ethersphere/bee-js event-type: update-bee - client-payload: '{"imageVersion": "${{ steps.build.outputs.full-version }}", "apiVersion": "${{ steps.build.outputs.api-version }}", "debugApiVersion": "${{ steps.build.outputs.debug-api-version }}"}' + client-payload: '{"beeVersion": "${{ steps.build.outputs.full-version }}", "apiVersion": "${{ steps.build.outputs.api-version }}", "debugApiVersion": "${{ steps.build.outputs.debug-api-version }}"}' diff --git a/package.json b/package.json index f81df7c..8ef603a 100644 --- a/package.json +++ b/package.json @@ -76,4 +76,4 @@ "npm": ">=6.0.0", "bee": "1.6.1" } -} \ No newline at end of file +}