Skip to content

Commit

Permalink
try remove more control characters
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Nov 7, 2024
1 parent 5734349 commit ad7f7b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/actions/setup-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ runs:
if [[ -z $scalaVersion ]]; then
cd compiler
git --no-pager log -1
commitHash=$(git rev-parse --short=7 HEAD | xargs)
commitDate=$(git show -s --format=%cd --date=format:"%Y%m%d" HEAD | xargs)
baseVersion=$(sbt 'eval Build.baseVersion' | grep 'ans: String =' | awk '{ print $5 }' | xargs)
commitHash=$(git --no-pager rev-parse --short=7 HEAD | xargs)
commitDate=$(git --no-pager show -s --format=%cd --date=format:"%Y%m%d" HEAD | xargs)
baseVersion=$(sbt --no-colors --error 'eval Build.baseVersion' | grep 'ans: String =' | awk '{ print $5 }' | xargs)
# `SNAPSHOT` substring is required to treat compiler as experimental
# All compilers build from branch are treated experimental
scalaVersion=${baseVersion}-${commitDate}-${commitHash}-SNAPSHOT
Expand Down

0 comments on commit ad7f7b7

Please sign in to comment.