Skip to content

Commit c43cfe2

Browse files
committed
update
1 parent 3fb07f2 commit c43cfe2

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

.github/workflows/hourly-commit.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,8 @@ jobs:
1616
with:
1717
fetch-depth: 2
1818

19-
- name: Check timing and update
19+
- name: Commit and push
2020
run: |
21-
LAST_COMMIT=$(git log -1 --format=%ct)
22-
NOW=$(date +%s)
23-
DIFF=$((NOW - LAST_COMMIT))
24-
25-
if [ $DIFF -lt 3300 ]; then
26-
echo "Only $((DIFF / 60))m since last commit — skipping."
27-
exit 0
28-
fi
29-
30-
echo "Last commit was $((DIFF / 60))m ago — committing."
3121
date > .github/.keep_active
3222
git config --global user.name "HOLYKEYZ"
3323
git config --global user.email "ayandajoseph390@gmail.com"

0 commit comments

Comments
 (0)