From 1da219533fd5c12c5935da40e49e1610311464f6 Mon Sep 17 00:00:00 2001 From: Maarten Zuidhoorn Date: Wed, 23 Apr 2025 14:47:10 +0200 Subject: [PATCH 1/2] Disable "validate pull request" workflow for release pull requests --- .github/workflows/validate-pull-request.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/validate-pull-request.yml b/.github/workflows/validate-pull-request.yml index 24557a0dbf..736bf81332 100644 --- a/.github/workflows/validate-pull-request.yml +++ b/.github/workflows/validate-pull-request.yml @@ -13,6 +13,7 @@ jobs: validate-pull-request-title: name: Validate title runs-on: ubuntu-latest + if: !startsWith(github.head_ref , 'release/') steps: - name: Validate title # `amannn/action-semantic-pull-request@v5.4.0` From 6e71e94a7a6dcff4e30994f10174afa450505518 Mon Sep 17 00:00:00 2001 From: Maarten Zuidhoorn Date: Wed, 23 Apr 2025 14:51:36 +0200 Subject: [PATCH 2/2] Wrap if in brackets --- .github/workflows/validate-pull-request.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/validate-pull-request.yml b/.github/workflows/validate-pull-request.yml index 736bf81332..3d3b99d0a5 100644 --- a/.github/workflows/validate-pull-request.yml +++ b/.github/workflows/validate-pull-request.yml @@ -13,7 +13,7 @@ jobs: validate-pull-request-title: name: Validate title runs-on: ubuntu-latest - if: !startsWith(github.head_ref , 'release/') + if: ${{ !startsWith(github.head_ref , 'release/') }} steps: - name: Validate title # `amannn/action-semantic-pull-request@v5.4.0`