From 5255d0af8ad66f2919b3abcd2afcae7a95d2cdca Mon Sep 17 00:00:00 2001 From: Michael Yang Date: Wed, 27 Mar 2024 16:14:20 -0700 Subject: [PATCH] fix: workflows --- .github/workflows/test.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 9b39e0b9..1885413c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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:]]))" }