if [ "$scala_version_from_dockerfile" != "$scala_version_from_config" ]; then echo "versions differ"; sed -i "s/\(version =\).*/\1 ${scala_version_from_dockerfile}/g" TEMPLATES/.scalafmt.conf; fi
- uses:EndBug/add-and-commit@v9# You can change this to use a specific version.
with:
add:'TEMPLATES/.scalafmt.conf'
fetch:false
message:'Update scala config version to match version installed'