Skip to content

Commit 0b63a44

Browse files
committed
[ci skip] Trying to fix modrinth.yml
1 parent 7c7c70b commit 0b63a44

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/modrinth.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
steps:
2424
- name: Checkout repository
2525
uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0 # Fetch all history for all branches and tags
2628

2729
- name: Check if should run
2830
id: check_run
@@ -33,7 +35,13 @@ jobs:
3335
echo "Release or forced run - proceeding with Modrinth publish"
3436
# For scheduled runs, check for recent commits
3537
else
36-
echo "Checking for commits in the last 24 hours..."
38+
echo "=== Debug Information ==="
39+
echo "Current time: $(date)"
40+
echo "24 hours ago: $(date -d '24 hours ago')"
41+
echo "Git log history:"
42+
git log --since="24 hours ago" --pretty=format:'%h - %s (%cr)' || echo "Git log command failed"
43+
44+
echo "\nChecking for commits in the last 24 hours..."
3745
COMMITS=$(git log --since="24 hours ago" --pretty=format:'%H' | wc -l)
3846
if [ "$COMMITS" -gt 0 ]; then
3947
echo "Found $COMMITS commits in the last 24 hours"

0 commit comments

Comments
 (0)