Skip to content

Commit

Permalink
Merge pull request #3380 from ollama/mxyng/conditional-generate
Browse files Browse the repository at this point in the history
fix: workflows
  • Loading branch information
mxyng committed Mar 27, 2024
2 parents 461ad25 + 5255d0a commit 756c257
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/test.yaml
Expand Up @@ -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:]]))"
}
Expand Down

0 comments on commit 756c257

Please sign in to comment.