Skip to content

Commit

Permalink
Fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
matfax committed Nov 15, 2018
1 parent a79d4e3 commit 2378512
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/@orb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ executors:
<<: *alpine_params
docker:
- image: gofunky/git:2.18.1-alpine<< parameters.alpine_version >>-envload

commands:
install:
steps:
Expand Down Expand Up @@ -196,7 +197,7 @@ commands:
name: Match the semantic version
command: |
source /usr/local/bin/envload
<< parameters.variable >>=$(echo "${<< parameters.variable >>}" | sed -nre 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p' | head -n1)
<< parameters.variable >>=$(echo "${<< parameters.variable >>}" | sed -nre 's/((0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?)/\1/p' | head -n1)
echo "SET << parameters.variable >>: ${<< parameters.variable >>}"
echo "${<< parameters.variable >>}" > ./.envs/<< parameters.variable >>.env
Expand Down

0 comments on commit 2378512

Please sign in to comment.