From f16c8b048659b3651548546bec3a7fd1ccd65cbc Mon Sep 17 00:00:00 2001 From: Martin Hrabovcin Date: Thu, 5 Sep 2024 18:01:38 +0200 Subject: [PATCH 1/3] feat: add release please action for mesosphere branch --- .../workflows/release-please-mesosphere.yaml | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/release-please-mesosphere.yaml diff --git a/.github/workflows/release-please-mesosphere.yaml b/.github/workflows/release-please-mesosphere.yaml new file mode 100644 index 0000000..ec8f498 --- /dev/null +++ b/.github/workflows/release-please-mesosphere.yaml @@ -0,0 +1,29 @@ +name: release-please-mesosphere + +on: + workflow_dispatch: {} + push: + branches: + - mesosphere + +permissions: + contents: write + pull-requests: write + actions: write + +jobs: + release-please: + runs-on: ubuntu-22.04 + steps: + - uses: googleapis/release-please-action@v4 + id: release-please + with: + release-type: go + + - if: ${{ steps.release-please.outputs.release_created }} + name: Run release workflow + uses: benc-uk/workflow-dispatch@v1 + with: + workflow: release.yml + ref: ${{ steps.release-please.outputs.tag_name }} + inputs: '{"releaseVersion":"${{ steps.release-please.outputs.tag_name }}"}' From d86755b11caf37cdd630ea0bd6e164c826f9e9f7 Mon Sep 17 00:00:00 2001 From: Martin Hrabovcin Date: Fri, 6 Sep 2024 11:08:42 +0200 Subject: [PATCH 2/3] fix: use manifest config --- .github/workflows/release-please-mesosphere.yaml | 2 -- release-please-config.json | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 release-please-config.json diff --git a/.github/workflows/release-please-mesosphere.yaml b/.github/workflows/release-please-mesosphere.yaml index ec8f498..3ee6b54 100644 --- a/.github/workflows/release-please-mesosphere.yaml +++ b/.github/workflows/release-please-mesosphere.yaml @@ -17,8 +17,6 @@ jobs: steps: - uses: googleapis/release-please-action@v4 id: release-please - with: - release-type: go - if: ${{ steps.release-please.outputs.release_created }} name: Run release workflow diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..ad55f18 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,14 @@ +{ + "packages": { + ".": { + "changelog-path": "CHANGELOG.md", + "release-type": "go", + "skip-github-release": true, + "bump-minor-pre-major": false, + "bump-patch-for-minor-pre-major": false, + "draft": false, + "prerelease": false + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +} From 93ac99c58a32417fdccf011919bac61f2a82fe18 Mon Sep 17 00:00:00 2001 From: Martin Hrabovcin Date: Fri, 6 Sep 2024 15:57:15 +0200 Subject: [PATCH 3/3] chore: pr feedback --- release-please-config.json | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/release-please-config.json b/release-please-config.json index ad55f18..e425fbf 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -1,13 +1,9 @@ { "packages": { ".": { - "changelog-path": "CHANGELOG.md", "release-type": "go", - "skip-github-release": true, - "bump-minor-pre-major": false, - "bump-patch-for-minor-pre-major": false, - "draft": false, - "prerelease": false + "pull-request-title-pattern": "release${scope}: ${component} v${version}", + "changelog-type": "github" } }, "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"