Skip to content

Commit f16abb5

Browse files
committed
checkout repos with same ref as the calling workflow's ref
have to use org-repo main branch for committed config
1 parent d4d03c1 commit f16abb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ jobs:
4444
with:
4545
persist-credentials: false
4646
repository: ${{ github.repository }}
47+
ref: ${{ github.sha }}
4748
path: project-repo
4849
- name: Checkout cpp-linter/.github (org) repo
4950
# needed for committed.toml config (org-specific)

0 commit comments

Comments
 (0)