From 2a65aece1da97e0d6c4a3f0ed059c0f7536e3bb1 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 19 Jul 2024 10:53:51 +0200 Subject: [PATCH] DEBUG Signed-off-by: Sebastiaan van Stijn --- .github/workflows/validate-pr.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/validate-pr.yml b/.github/workflows/validate-pr.yml index 73323ad6de2f..57130602aadb 100644 --- a/.github/workflows/validate-pr.yml +++ b/.github/workflows/validate-pr.yml @@ -62,6 +62,8 @@ jobs: # get major version prefix from the release branch ("27.x -> "27.") [[ "$GITHUB_BASE_REF" =~ ^\([0-9]*\.\) ]] && target_branch="${BASH_REMATCH[1]}" + env + if [[ "$GITHUB_BASE_REF" != "$branch" ]] && ! [[ "$GITHUB_BASE_REF" == "master" && "$branch" == "" ]]; then echo "::error::PR is opened against the $GITHUB_BASE_REF branch, but its title suggests otherwise." exit 1