Skip to content

Commit e6b7ee7

Browse files
committed
Add expression for fetch depth
1 parent edbb0de commit e6b7ee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/workflow-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919
with:
2020
repository: ${{ github.repository }}
21-
fetch-depth: 0
21+
fetch-depth: ${{ github.event_name == 'pull_request' && 2 || 0 }}
2222

2323
# - name: Get changed files
2424
# id: changed-workflows

0 commit comments

Comments
 (0)