"git@developer.sourcefind.cn:OpenDAS/pytorch3d.git" did not exist on "1530a66469f32dbc790d9fda9d838cd6773d4e32"
Unverified Commit 7fea1ecd authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

Merge pull request #3958 from ollama/mxyng/fix-workflow

use merge base for diff-tree
parents 05489427 6fef042f
...@@ -31,7 +31,9 @@ jobs: ...@@ -31,7 +31,9 @@ jobs:
- id: changes - id: changes
run: | run: |
changed() { changed() {
git diff-tree -r --no-commit-id --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} \ git diff-tree -r --no-commit-id --name-only \
$(git merge-base ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}) \
${{ github.event.pull_request.head.sha }} \
| xargs python3 -c "import sys; print(any([x.startswith('$1') for x in sys.argv[1:]]))" | xargs python3 -c "import sys; print(any([x.startswith('$1') for x in sys.argv[1:]]))"
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment