Skip to content

Commit 54afd2c

Browse files
authored
Update checkout from target branch to main (#8276)
This PR changes clang-format-checker.yml so that the main branch is checked out when fetching formatting tools, not the target branch of the PR.
1 parent 5591738 commit 54afd2c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/clang-format-checker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3838
with:
3939
repository: microsoft/DirectXShaderCompiler
40-
ref: ${{ github.base_ref }}
40+
ref: ${{ github.event.repository.default_branch }}
4141
sparse-checkout: |
4242
utils/git/requirements_formatting.txt
4343
utils/git/code-format-helper.py
@@ -113,7 +113,7 @@ jobs:
113113
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
114114
with:
115115
repository: microsoft/DirectXShaderCompiler
116-
ref: ${{ github.base_ref }}
116+
ref: ${{ github.event.repository.default_branch }}
117117
sparse-checkout: |
118118
utils/git/requirements_formatting.txt
119119
utils/git/code-format-helper.py

0 commit comments

Comments
 (0)