From 42fcd659657071c8bdb43c4ba0123a39de6c468a Mon Sep 17 00:00:00 2001 From: Barnabas Busa Date: Thu, 13 Jun 2024 12:29:08 +0200 Subject: [PATCH 1/2] feat: add pr checker and releaser --- .../conventional-pr-title-checker.yml | 22 +++++++++++++++++++ .github/workflows/release-please.yml | 3 +-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/conventional-pr-title-checker.yml diff --git a/.github/workflows/conventional-pr-title-checker.yml b/.github/workflows/conventional-pr-title-checker.yml new file mode 100644 index 00000000..41730282 --- /dev/null +++ b/.github/workflows/conventional-pr-title-checker.yml @@ -0,0 +1,22 @@ +# Check PR title for conventional commits +name: Check PR title +on: + pull_request_target: + types: + - opened + - reopened + - edited + - synchronize + +# cancel redundant builds +concurrency: + group: "title-checker-${{ github.head_ref }}" + cancel-in-progress: true + +jobs: + title_check: + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index d3027d60..a1176c17 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -8,8 +8,7 @@ jobs: name: "Release please" runs-on: ubuntu-latest steps: - - uses: google-github-actions/release-please-action@v3 + - uses: googleapis/release-please-action@v4 with: release-type: simple - package-name: kurtosis include-v-in-tag: false From 9f17f6b356638017804dd0f670181ad457962b5d Mon Sep 17 00:00:00 2001 From: Barnabas Busa Date: Thu, 13 Jun 2024 12:41:21 +0200 Subject: [PATCH 2/2] fix branch name --- .github/workflows/release-please.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index a1176c17..17eac39a 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -1,14 +1,18 @@ on: push: - branches: [main] + branches: + - master + +permissions: + contents: write + pull-requests: write name: release-please + jobs: release-please: - name: "Release please" runs-on: ubuntu-latest steps: - uses: googleapis/release-please-action@v4 with: release-type: simple - include-v-in-tag: false