Skip to content

Commit

Permalink
ci: Added prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Josephasafg committed Jun 19, 2024
1 parent 6a3ca22 commit 68d3d05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68d3d05

Please sign in to comment.