Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
7fea1ecd
Unverified
Commit
7fea1ecd
authored
Apr 26, 2024
by
Michael Yang
Committed by
GitHub
Apr 26, 2024
Browse files
Merge pull request #3958 from ollama/mxyng/fix-workflow
use merge base for diff-tree
parents
05489427
6fef042f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
.github/workflows/test.yaml
.github/workflows/test.yaml
+3
-1
No files found.
.github/workflows/test.yaml
View file @
7fea1ecd
...
@@ -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:]]))"
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment