Skip to content

Commit 43a4dab

Browse files
add git fetch --unshallow
1 parent 18cb1ab commit 43a4dab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717

1818
- name: Get all changed files excluding docs and README
1919
id: changed-files
20-
run: echo "changed_files=$(git diff --name-only ${GITHUB_BASE_REF} -- . ':(exclude)**/*.md' ':(exclude)doc/*.{json,png,svg}' | wc -l)" >> "$GITHUB_OUTPUT"
20+
run: git fetch --unshallow --all --tags && \
21+
echo "changed_files=$(git diff --name-only ${GITHUB_BASE_REF} -- . ':(exclude)**/*.md' ':(exclude)doc/*.{json,png,svg}' | wc -l)" >> "$GITHUB_OUTPUT"
2122

2223
- name: Run Revive Action by building from repository
2324
uses: morphy2k/[email protected]

0 commit comments

Comments
 (0)