Skip to content

Commit

Permalink
ci: change regex to be bash-compliant (#474)
Browse files Browse the repository at this point in the history
* fix: solve a problem where the task fail if the build folder is not previously created

* fix: change regex to be compliant to the bash standard
  • Loading branch information
nicolasfara authored Jan 31, 2023
1 parent c47a755 commit 5454a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ jobs:
$(echo "$COMMAND") || $(echo "$COMMAND") || $(echo "$COMMAND")
[[ -e build/staging-repo-ids.properties ]]
[[ "$(wc -l build/staging-repo-ids.properties)" =~ "^1 .*" ]]
[[ "$(cat build/staging-repo-ids.properties)" =~ '^MavenCentral=\w+-\d+$' ]]
[[ "$(cat build/staging-repo-ids.properties)" =~ '^MavenCentral=[a-zA-Z]+-[0-9]+$' ]]
working-directory: kt-mp-multi-stage
should-run-codecov: false
should-deploy: true
Expand Down

0 comments on commit 5454a6f

Please sign in to comment.