From d1fe58fc2f78423d221e28b558928b7c551e4b07 Mon Sep 17 00:00:00 2001 From: Danilo Pianini Date: Tue, 31 Jan 2023 23:28:37 +0100 Subject: [PATCH] ci: fix pure bash regex matchers --- .github/workflows/build-and-deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index d44d9723..f35424b2 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -165,12 +165,12 @@ jobs: [[ -e "$IDS" ]] || ( echo "No $IDS" && exit 2 ) - [[ "$(wc -l "$IDS")" =~ "^1 .*" ]] || ( + [[ "$(wc -l "$IDS")" =~ ^1' '.*$ ]] || ( echo "$IDS has too many lines (1 expected): $(wc -l "$IDS")" && cat "$IDS" && exit 3 ) - [[ "$(cat build/staging-repo-ids.properties)" =~ '^MavenCentral=[a-zA-Z]+-[0-9]+$' ]] || ( + [[ "$(cat build/staging-repo-ids.properties)" =~ ^MavenCentral=[a-zA-Z0-9]+-[0-9]+$ ]] || ( echo "$IDS has not the expected content" && cat "$IDS" && exit 4