From 580ae74e85aec87de15ebc51363268b0bdf4c8f3 Mon Sep 17 00:00:00 2001 From: Adrian Ochmann Date: Thu, 25 Feb 2021 08:42:48 +0100 Subject: [PATCH] fix: fixed branch condition --- .github/workflows/changelog.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 69cf793..8af561e 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -28,7 +28,8 @@ jobs: echo $branch_check - if [[ $branch_check != "release" || $branch_check != "master" ]]; then + if [[ $branch_check =~ ^(release|master)$ ]]; then + echo "Not correct branch. Allowed branches release and master." exit 1 fi