Skip to content

Commit

Permalink
ci: changeset check (#431)
Browse files Browse the repository at this point in the history
* feat: update changelog

* feat: update changelog

* feat: update changelog

* feat: update changelog
  • Loading branch information
kiner-tang authored Dec 31, 2023
1 parent 3b41c09 commit 1cdd187
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/changeset-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ jobs:
env:
ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: |
# 拉取 pr 源分支代码
git fetch origin ${{ github.event.pull_request.head.ref }}:${{ github.event.pull_request.head.ref }}
git checkout ${{ github.event.pull_request.head.ref }}
git reset --hard ${{ github.event.pull_request.head.sha }}
ls -al .changeset
files=$ALL_CHANGED_FILES
echo "File list: $files"
if grep -q "major" "$files"; then
Expand Down

0 comments on commit 1cdd187

Please sign in to comment.