diff --git a/cron_commits.sh b/cron_commits.sh deleted file mode 100755 index c32b6b57a1facd3b2aecf1ba0037661e6470e844..0000000000000000000000000000000000000000 --- a/cron_commits.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash - -set -e - -most_recent='' - -while true -do - commits=$(curl -s https://api.github.com/repos/$1/commits) - sha=$(echo "$commits" | jq -r '.[0].sha') - - if [ -z "$most_recent" ] - then - most_recent="$sha" - echo "first run of loop, commit is $sha" - continue - fi - - if [ "$most_recent" == "$sha" ] - then - echo "most recent commit is the same, sleeping" - # sec - min - hr - sleep $((1 * 60 * 60 * $2)) - continue - fi - - echo "found new commit $sha" - ./generate.sh -done