Skip to content

Commit

Permalink
Update ".github/workflows/test.yml"
Browse files Browse the repository at this point in the history
from femiwiki/.github (femiwiki/.github@219307a)
  • Loading branch information
lens0021 committed Jan 8, 2021
1 parent 1fe980a commit 2c5e3ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c5e3ce

Please sign in to comment.