From a2e246c9d443c67c4e4367374b8f9176ba585ed5 Mon Sep 17 00:00:00 2001 From: Gichan Jang Date: Mon, 9 Dec 2024 10:56:21 +0900 Subject: [PATCH] [Action] Get git diff size by cli tool Get git diff size by cli tool. Signed-off-by: Gichan Jang --- .github/actions/gitpush/action.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/actions/gitpush/action.yml b/.github/actions/gitpush/action.yml index fb5c05a0..a60cccb8 100644 --- a/.github/actions/gitpush/action.yml +++ b/.github/actions/gitpush/action.yml @@ -25,9 +25,7 @@ runs: pushd nnstreamer.github.io mkdir -p ${{ inputs.dest }} cp -r ${{ inputs.source }} ${{ inputs.dest }} - git diff > git_diff.txt - DIFF_SIZE=$(stat -c%s git_diff.txt) - if [[ $DIFF_SIZE -ne 0 ]]; then + if git diff --shortstat | grep -q changed; then git config user.email "nnsuite@samsung.com" git config user.name "nnsuite" git add *