Skip to content
Snippets Groups Projects
Verified Commit fd532c98 authored by Laurent Heirendt's avatar Laurent Heirendt :airplane:
Browse files

add docker command for git

parent 91b84419
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@ format:
- docker login -u $CI_USER_NAME -p $GITLAB_ACCESS_TOKEN $CI_REGISTRY
script:
#- docker run -v $(pwd):/project $CI_REGISTRY/r3/docker/julia-custom --project=@. -e 'using JuliaFormatter; format(".", verbose=true);'
- if [[ $(git status -s | wc -l) -gt 0 ]]; then
- if [[ $(docker run -i -v $(pwd):/git alpine/git status -s | wc -l) -gt 0 ]]; then
GITHUB_COMMENT="There are files that need formatting.";
else
GITHUB_COMMENT="All files are formatted properly :white_check_mark:";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment