From 2c5e3ceb0bd83d810862539e11f9cc39dad05518 Mon Sep 17 00:00:00 2001 From: lens0021 Date: Fri, 8 Jan 2021 07:58:16 +0000 Subject: [PATCH] Update ".github/workflows/test.yml" from femiwiki/.github (https://github.com/femiwiki/.github/commit/219307aad58e5c7474a3cb5b940d1cfa85f50b69) --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 17ce4fa..130c5da 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -53,10 +53,10 @@ jobs: # An example of GITHUB_REF: refs/heads/feature-branch-1 BRANCH_NAME=$(echo "$GITHUB_REF" | cut -d'/' -f3 | cut -d'-' -f1) BASE_BRANCH_NAME=$(echo "$GITHUB_BASE_REF" | cut -d'/' -f3) - if [[ "$BRANCH_NAME" =~ ^master|REL\d+_\d+$ ]]; then + if [[ "$BRANCH_NAME" =~ ^(master|REL[0-9]+_[0-9]+)$ ]]; then # branch name starts with the version (ex: master-new-feature, REL1_34-bug-fix) export MEDIAWIKI_VERSION="$BRANCH_NAME" - elif [ "$GITHUB_EVENT_NAME" == 'pull_request' ] && [[ "$BASE_BRANCH_NAME" =~ ^master|REL\d+_\d+$ ]]; then + elif [ "$GITHUB_EVENT_NAME" == 'pull_request' ] && [[ "$BASE_BRANCH_NAME" =~ ^(master|REL[0-9]+_[0-9]+)$ ]]; then export MEDIAWIKI_VERSION="$BASE_BRANCH_NAME" else export MEDIAWIKI_VERSION=master