Commit 72d4f651 authored by Archit Tamarapu's avatar Archit Tamarapu
Browse files

set default value for format_problems and only attempt artifact upload on failure

parent 689c3ce2
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -909,8 +909,8 @@ clang-format-check:
      - run: git apply $PATCH_FILE_NAME\n
      - commit new changes"

    - scripts/check-format.sh -af -p 8 
    - format_problems=$?
    - format_problems=0
    - scripts/check-format.sh -af -p 8  || format_problems=$?
    - if [ $format_problems == 0 ] ; then exit 0; fi

    - mkdir tmp-formatting-fix
@@ -927,7 +927,7 @@ clang-format-check:
    expire_in: 1 day
    paths:
      - tmp-formatting-fix/
    when: always
    when: on_failure
    name: "$ARTIFACT_BASE_NAME"
    expose_as: "formatting patch"