ci: automatic bee bump (#100)

This commit is contained in:
Adam Uhlíř 2022-05-09 11:46:47 +02:00 committed by GitHub
parent e146b8406b
commit c033758f3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 <bee-worker@ethswarm.org>"
- name: Trigger Bee-js PR creation
if: ${{ github.event_name == 'repository_dispatch' }}
uses: peter-evans/repository-dispatch@v1