Skip to content

Commit

Permalink
终点提交应由HEAD改为FETCH_HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
VillagerTom committed Feb 18, 2024
1 parent 9c20d14 commit df5b6d0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ jobs:
echo "当前版本tag不存在,请手动生成tag."
exit 1
fi
git log --oneline HEAD
first_parent_commit_count=$(git rev-list --first-parent --count $recent_release_tag..HEAD)
first_parent_commit_count=$(git rev-list --first-parent --count $recent_release_tag..FETCH_HEAD)
echo "count=$first_parent_commit_count" >> $GITHUB_OUTPUT
- name: 更新版本号
Expand Down

0 comments on commit df5b6d0

Please sign in to comment.