Skip to content

Commit

Permalink
ci: adjust release please config for v4
Browse files Browse the repository at this point in the history
  • Loading branch information
shipperizer committed Jan 30, 2025
1 parent 79e14f6 commit e36b255
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ on:
- main
- "release-**"

permissions:
contents: write
pull-requests: write

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@4c5670f886fe259db4d11222f7dff41c1382304d # v3
with:
release-type: simple
package-name: ""
default-branch: main
pull-request-title-pattern: "ci: release ${version}"
token: ${{ secrets.PAT_TOKEN }}
extra-files: |
rockcraft.yaml
internal/version/const.go
- uses: googleapis/release-please-action@v4
id: release
with:
token: ${{ secrets.PAT_TOKEN }}
# optional. customize path to release-please-config.json
config-file: release-please-config.json
# optional. customize path to .release-please-manifest.json
manifest-file: .release-please-manifest.json
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Workaround for https://github.com/googleapis/release-please/issues/922
if: ${{ steps.release.outputs.pr != '' }}
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.0.0"
".": "1.22.1"
}
2 changes: 2 additions & 0 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"bump-patch-for-minor-pre-major": false,
"draft": false,
"prerelease": false,
"pull-request-title-pattern": "ci: release ${version}",
"package-name": "",
"extra-files": [
"rockcraft.yaml",
"internal/version/const.go"
Expand Down

0 comments on commit e36b255

Please sign in to comment.