Skip to content

Commit

Permalink
fix: upgrade release please (#66)
Browse files Browse the repository at this point in the history
* fix: upgrade release please

Signed-off-by: David Looi <[email protected]>

* fix: include target branch

Signed-off-by: David Looi <[email protected]>

* fix: target branch

Signed-off-by: David Looi <[email protected]>

* fix: master only

Signed-off-by: David Looi <[email protected]>

* fix: conventional commit title

Signed-off-by: David Looi <[email protected]>

---------

Signed-off-by: David Looi <[email protected]>
  • Loading branch information
davelooi authored Oct 20, 2024
1 parent ea17df1 commit 4b04ef6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 10 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_bsb_db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
11 changes: 11 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}

0 comments on commit 4b04ef6

Please sign in to comment.