Skip to content

Commit

Permalink
use BASE_COMMIT and HEAD_COMMIT
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiJuWu committed Sep 24, 2024
1 parent efbac36 commit d3051e1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
repo=origin
base_branch=${{ github.event.pull_request.base.ref }}
git fetch $repo $base_branch
BASE_COMMIT="${{ github.event.pull_request.base.sha }}"
HEAD_COMMIT="${{ github.event.pull_request.head.sha }}"
summary=$(git diff --stat $repo/$base_branch..HEAD | tail -n 1)
summary=$(git diff --stat $BASE_COMMIT $HEAD_COMMIT | tail -n 1)
echo "summary $summary"
min_size=100
Expand Down

0 comments on commit d3051e1

Please sign in to comment.