From 7dc4c2c7ea9be275de9c069051e47370d234d8b7 Mon Sep 17 00:00:00 2001 From: Yanqin Jin Date: Tue, 28 Apr 2020 23:27:48 -0700 Subject: [PATCH] Update GH Action config --- .github/workflows/sanity_check.yml | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/.github/workflows/sanity_check.yml b/.github/workflows/sanity_check.yml index afde28521..5cda9da75 100644 --- a/.github/workflows/sanity_check.yml +++ b/.github/workflows/sanity_check.yml @@ -30,19 +30,8 @@ jobs: with: args: https://raw.githubusercontent.com/llvm-mirror/clang/master/tools/clang-format/clang-format-diff.py - - name: Compute merge base between PR and upstream/master - id: merge_base - run: | - echo "::set-output name=MERGE_BASE::$(git merge-base upstream/master HEAD)" - - - name: Format diff - id: format_diff - run: | - echo "::set-output name=FORMAT_DIFF_OUTPUT::$(git diff -U0 ${{steps.merge_base.outputs.MERGE_BASE}} | python clang-format-diff.py -p 1 | head -n 1)" - - name: Check format - run: | - if [ -z "${{steps.format_diff.outputs.FORMAT_DIFF_OUTPUT}}" ]; then exit 0; else exit 1; fi + run: make check-format - name: Compare buckify output run: make check-buck-targets