diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d90d635..0d80faa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -4,6 +4,14 @@ name: CI on: # yamllint disable-line rule:truthy workflow_dispatch: workflow_call: + inputs: + skip_commit_validation: + description: >- + Skip the commit-subject check - it only makes sense pre-merge + (should this PR be mergeable), not as a post-merge gate. + required: false + type: boolean + default: false pull_request: jobs: @@ -43,6 +51,7 @@ jobs: run: mix test conventional_commits: + if: inputs.skip_commit_validation != true name: Validate Commit Subjects runs-on: ubuntu-latest steps: diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 2f7ff6a..71fbd3f 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -18,6 +18,8 @@ jobs: validate: name: Validations uses: ./.github/workflows/ci.yaml + with: + skip_commit_validation: true manage-release-pr: needs: [validate]