diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index 98819a9a..de49f171 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -45,10 +45,11 @@ jobs: git checkout $head_branch git fetch origin $base_branch diff_output=$(git diff --shortstat origin/$base_branch...$head_branch) - + echo $diff_output insertions=$(echo $diff_output | awk '{print $4 || 0}') deletions=$(echo $diff_output | awk '{print $6 || 0}') changed_lines=$((insertions + deletions)) + echo $changed_lines echo "changed_lines=$changed_lines" >> $GITHUB_ENV - name: Determine label