File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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"
You can’t perform that action at this time.
0 commit comments