Skip to content

Commit

Permalink
try fix grep
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Oct 19, 2024
1 parent cbb6f73 commit b706717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
# TODO: Fix me, Commented out to test for debug purpuse, failed during release with no info
# Pipe through xargs to remove whitespaces
set -x
version=$(sbt --batch --no-colors "show scala3-compiler-bootstrapped/version" | grep -oEh "3\.\d+\.\d+([-a-zA-Z1-9]+)?")
version=$(sbt --batch --no-colors "show scala3-compiler-bootstrapped/version" | grep -Eo "3\.[0-9]+\.[0-9]+(-RC[0-9]+)?")
if [ "${version}" = "${{ env.RELEASE_TAG }}" ]; then
echo "Compiler version '${version}' matches tag: ${{ env.RELEASE_TAG }}"
else
Expand Down Expand Up @@ -137,7 +137,7 @@ jobs:
sbt --batch --no-colors "show scala3-compiler-bootstrapped/version"
# TODO: Fix me, Commented out to test for debug purpuse, failed during release with no info
# Pipe through xargs to remove whitespaces
version=$(sbt --batch --no-colors "show scala3-compiler-bootstrapped/version" | grep -oEh "3\.\d+\.\d+([-a-zA-Z1-9]+)?")
version=$(sbt --batch --no-colors "show scala3-compiler-bootstrapped/version" | grep -Eo "3\.[0-9]+\.[0-9]+-RC([-a-zA-Z0-9]+)-NIGHTLY")
if [ "${version}" = "${{ env.RELEASE_TAG }}" ]; then
echo "Compiler version '${version}' matches tag: ${{ env.RELEASE_TAG }}"
else
Expand Down

0 comments on commit b706717

Please sign in to comment.