From c033758f3d5f99afb0b36a3388c9c36cb548abd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Uhl=C3=AD=C5=99?= Date: Mon, 9 May 2022 11:46:47 +0200 Subject: [PATCH] ci: automatic bee bump (#100) --- .github/workflows/publish.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 308daa2..5701570 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -101,6 +101,26 @@ jobs: cd ./generator npm run publish:env + - name: Update bee version in package.json + uses: jossef/action-set-json-field@v1 + if: ${{ github.event_name == 'repository_dispatch' }} + with: + file: package.json + field: engines.bee + value: ${{ env.BEE_VERSION }} + + - name: Create/update PR + if: ${{ github.event_name == 'repository_dispatch' }} + uses: gr2m/create-or-update-pull-request-action@v1 + env: + GITHUB_TOKEN: ${{ secrets.REPO_GHA_PAT }} + with: + title: "chore: update to bee ${{ env.BEE_VERSION }}" + body: "Updated Bee version ${{ env.BEE_VERSION }}" + branch: "bee-${{ env.BEE_VERSION }}" + commit-message: "chore: update to new bee" + author: "bee-worker " + - name: Trigger Bee-js PR creation if: ${{ github.event_name == 'repository_dispatch' }} uses: peter-evans/repository-dispatch@v1