diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 5f93000..dddfe6d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [main] + branches: [main, 'release-please--**'] pull_request: workflow_call: diff --git a/.github/workflows/pr-title.yaml b/.github/workflows/pr-title.yaml index 3ca5139..8537600 100644 --- a/.github/workflows/pr-title.yaml +++ b/.github/workflows/pr-title.yaml @@ -1,6 +1,8 @@ name: PR Title on: + push: + branches: ['release-please--**'] pull_request: types: [opened, edited, synchronize, reopened] @@ -9,7 +11,8 @@ jobs: name: Validate conventional commit format runs-on: ubuntu-24.04 steps: - - uses: amannn/action-semantic-pull-request@v6 + - if: ${{ github.event_name != 'push' }} + uses: amannn/action-semantic-pull-request@v6 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -25,3 +28,6 @@ jobs: requireScope: false subjectPattern: ^.+$ subjectPatternError: "PR title must have a description after the type" + + - if: ${{ github.event_name == 'push' }} + run: echo "Release Please PRs always use valid conventional commit format"