We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8426b66 commit bae2e96Copy full SHA for bae2e96
.github/workflows/gpuci.yml
@@ -34,13 +34,7 @@ jobs:
34
- name: Determine base reference
35
id: base-ref
36
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
+ echo "base=${{ (startsWith(github.ref, 'refs/heads/pull-request/') && fromJSON(steps.get-pr-info.outputs.pr-info).base.ref) || 'HEAD~1' }}" >> $GITHUB_OUTPUT
44
45
- name: Get changed files
46
id: changed-files
0 commit comments