Skip to content

Commit

Permalink
Fix: Fail to pass Check changed files step of PR-CHECK workflow
Browse files Browse the repository at this point in the history
Add "safe directory exception" to solve it.
  • Loading branch information
FrankOu2001 committed Jan 17, 2025
1 parent deb6bec commit cddb17b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/self-hosted-ci-pr-checker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:

- name: Check changed files
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git fetch origin ${{ github.event.pull_request.base.ref }}:refs/remotes/origin/${{ github.event.pull_request.base.ref }}
git diff --name-only origin/${{ github.event.pull_request.base.ref }} ${{ github.event.pull_request.head.sha }} > changed_files.txt
cat changed_files.txt
Expand Down

0 comments on commit cddb17b

Please sign in to comment.