Skip to content

Commit

Permalink
[Action] Change how to detect code change
Browse files Browse the repository at this point in the history
The method of getting the diff of git is failing now.
Changed to check code diff by filtering the result.

Signed-off-by: Gichan Jang <gichan2.jang@samsung.com>
  • Loading branch information
gichan-jang committed Dec 19, 2024
1 parent 20adf2a commit 48ca203
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/actions/gitpush/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ runs:
pushd nnstreamer.github.io
mkdir -p ${{ inputs.dest }}
cp -r ${{ inputs.source }} ${{ inputs.dest }}
git diff -s --exit-code
if [ $? -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 *
Expand Down

0 comments on commit 48ca203

Please sign in to comment.