From 4b04ef638f763c48affc6e61ead0249b2d69085f Mon Sep 17 00:00:00 2001 From: Looi David Date: Mon, 21 Oct 2024 10:56:49 +1100 Subject: [PATCH] fix: upgrade release please (#66) * fix: upgrade release please Signed-off-by: David Looi * fix: include target branch Signed-off-by: David Looi * fix: target branch Signed-off-by: David Looi * fix: master only Signed-off-by: David Looi * fix: conventional commit title Signed-off-by: David Looi --------- Signed-off-by: David Looi --- .github/workflows/release.yml | 15 ++++++--------- .github/workflows/update_bsb_db.yml | 2 +- release-please-config.json | 11 +++++++++++ 3 files changed, 18 insertions(+), 10 deletions(-) create mode 100644 release-please-config.json diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 41caaae..22c3efb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,21 +5,18 @@ on: branches: - master +permissions: + contents: write + pull-requests: write + jobs: release-please: runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v3 + - uses: googleapis/release-please-action@v4 id: release with: - # https://github.com/google-github-actions/release-please-action - default-branch: master - release-type: ruby - package-name: bsb - version-file: lib/bsb/version.rb - fork: false - bump-minor-pre-major: true - bump-patch-for-minor-pre-major: true + target-branch: master - if: ${{ steps.release.outputs.release_created }} uses: actions/checkout@v4 diff --git a/.github/workflows/update_bsb_db.yml b/.github/workflows/update_bsb_db.yml index 8c8bbe8..1db4d61 100644 --- a/.github/workflows/update_bsb_db.yml +++ b/.github/workflows/update_bsb_db.yml @@ -29,7 +29,7 @@ jobs: uses: peter-evans/create-pull-request@v7 with: branch: update-bsb-db - title: Update BSB Database + title: "fix: Update BSB Database" body: | This Pull Request was created via a Github Action. diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..05607a1 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,11 @@ +{ + "release-type": "ruby", + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": true, + "packages": { + ".": { + "release-type": "ruby", + "version-file": "lib/bsb/version.rb" + } + } +}