Skip to content

Commit

Permalink
Use backticks to escape repository name in build.sc (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
SinaKarvandi authored Jan 6, 2025
1 parent 9a65423 commit f09569b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/template-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,12 @@ jobs:
SAFE_ORG=$(echo $ORG | sed 's/[^a-zA-Z0-9]//g' | tr '[:upper:]' '[:lower:]')
GROUP="com.github.$SAFE_ORG"
# Prepare wrapped name
WRAPPED_NAME="\`${NAME}\`"
# Replace placeholders
sed -i "s/%NAME%/$NAME/g" build.sbt build.sc README.md src/test/scala/gcd/*
sed -i "s/%NAME%/$NAME/g" build.sbt README.md src/test/scala/gcd/*
sed -i "s/%NAME%/$WRAPPED_NAME/g" build.sc
sed -i "s/%REPOSITORY%/${GITHUB_REPOSITORY/\//\\/}/g" README.md
sed -i "s/%ORGANIZATION%/$GROUP/g" build.sbt
Expand Down

0 comments on commit f09569b

Please sign in to comment.