Skip to content

Commit bae2e96

Browse files
authored
Fix gpu ci on push to main (#705)
Signed-off-by: Charlie Truong <chtruong@nvidia.com>
1 parent 8426b66 commit bae2e96

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/gpuci.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,7 @@ jobs:
3434
- name: Determine base reference
3535
id: base-ref
3636
run: |
37-
if [[ "${{ github.ref }}" == refs/heads/pull-request/* ]]; then
38-
# For PR branches, use the base branch from PR info
39-
echo "base=${{ fromJSON(steps.get-pr-info.outputs.pr-info).base.ref }}" >> $GITHUB_OUTPUT
40-
else
41-
# For other branches, use the last commit
42-
echo "base=HEAD~1" >> $GITHUB_OUTPUT
43-
fi
37+
echo "base=${{ (startsWith(github.ref, 'refs/heads/pull-request/') && fromJSON(steps.get-pr-info.outputs.pr-info).base.ref) || 'HEAD~1' }}" >> $GITHUB_OUTPUT
4438
4539
- name: Get changed files
4640
id: changed-files

0 commit comments

Comments
 (0)