Skip to content

Commit

Permalink
ci: fix pure bash regex matchers
Browse files Browse the repository at this point in the history
  • Loading branch information
DanySK authored Jan 31, 2023
1 parent 1c4822d commit d1fe58f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1fe58f

Please sign in to comment.