"docs/vscode:/vscode.git/clone" did not exist on "1b7c0f54e2913e159394a19ac5e50daa69c142c7"
Unverified Commit 756c2575 authored by Michael Yang's avatar Michael Yang Committed by GitHub
Browse files

Merge pull request #3380 from ollama/mxyng/conditional-generate

fix: workflows
parents 461ad250 5255d0af
......@@ -15,10 +15,13 @@ jobs:
GENERATE_CUDA: ${{ steps.changes.outputs.GENERATE_CUDA }}
GENERATE_ROCM: ${{ steps.changes.outputs.GENERATE_ROCM }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- id: changes
run: |
changed() {
git diff-tree -r --no-commit-id --name-only $GITHUB_BASE_REF $GITHUB_HEAD_REF \
git diff-tree -r --no-commit-id --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }} \
| 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