Commit 58265cb2 authored by sagnowski's avatar sagnowski
Browse files

Try fix issues with variable expansion

parent c1f5291e
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -406,7 +406,6 @@ clang-format-check:
    - .rules-merge-request
  variables:
    ARTIFACT_BASE_NAME: "mr-$CI_MERGE_REQUEST_IID--sha-$CI_COMMIT_SHORT_SHA--formatting-fix"
    PATCH_FILE_NAME: "$ARTIFACT_BASE_NAME.patch"
    INSTRUCTIONS_GITLAB: "To fix formatting issues:\n
      - download the diff patch available as artifact of this job\n
      - unzip the artifact and place the patch file in the root directory of your local IVAS repo\n
@@ -424,6 +423,7 @@ clang-format-check:
    - if [ $format_problems == 0 ] ; then exit 0; fi

    - mkdir tmp-formatting-fix
    - PATCH_FILE_NAME="$ARTIFACT_BASE_NAME.patch" # Must be assigned here so that all variables get expanded
    - git diff > "tmp-formatting-fix/$PATCH_FILE_NAME"

    # Print instructions to job output