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" + } + } +}