diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8762c3e1..94538521 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,10 +3,7 @@ name: Quibble and Phan on: push: branches: - - master - - master-* - - REL*_* - - REL*_*-* + - '*' tags-ignore: - '*.*' pull_request: @@ -48,10 +45,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