Skip to content

Commit 9f9180c

Browse files
committed
Fix workflows to check if new solutions are added
1 parent ab1b78d commit 9f9180c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/update-leetcode-grid.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ jobs:
3535
- name: Check for Solutions/ changes since last run
3636
id: changes
3737
run: |
38-
git fetch origin ${{ github.ref_name }}
38+
# Fetch enough history to include the last commit
39+
git fetch --depth=100 origin ${{ github.ref_name }}
40+
3941
if [ -n "${{ steps.last_commit.outputs.last }}" ]; then
4042
echo "Comparing from ${{ steps.last_commit.outputs.last }} to HEAD"
4143
git diff --name-only ${{ steps.last_commit.outputs.last }}..HEAD > files.txt

0 commit comments

Comments
 (0)