There was an error while loading. Please reload this page.
1 parent 0b63a44 commit 8244f43Copy full SHA for 8244f43
1 file changed
.github/workflows/modrinth.yml
@@ -42,9 +42,11 @@ jobs:
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..."
45
- COMMITS=$(git log --since="24 hours ago" --pretty=format:'%H' | wc -l)
46
- if [ "$COMMITS" -gt 0 ]; then
47
- echo "Found $COMMITS commits in the last 24 hours"
+
+ COMMIT_COUNT=$(git rev-list --count --since="24 hours ago" HEAD)
+ echo "Found $COMMIT_COUNT commits in the last 24 hours"
48
49
+ if [ "$COMMIT_COUNT" -gt 0 ]; then
50
echo "::set-output name=should_run::true"
51
else
52
echo "No commits found in the last 24 hours"
0 commit comments