authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-04-14 00:56:41 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-04-14 00:56:41 -07:00
log499bee6e82807ae650dd628b0dd83b9d3a95367b
tree1ae969362034d3431e9a8e48c36641f1ca178962
parent44da27fce1203d982eaf38217b2f0cdbdfcf2be8
signaturelock-open Commit is signed but in an unrecognized format.

remove local cron_commits.sh in favor of nektro/bash-helpers


1 files changed, 0 insertions(+), 29 deletions(-)

cron_commits.sh deleted-29
...@@ -1,29 +0,0 @@
1#!/usr/bin/env bash
2
3set -e
4
5most_recent=''
6
7while true
8do
9 commits=$(curl -s https://api.github.com/repos/$1/commits)
10 sha=$(echo "$commits" | jq -r '.[0].sha')
11
12 if [ -z "$most_recent" ]
13 then
14 most_recent="$sha"
15 echo "first run of loop, commit is $sha"
16 continue
17 fi
18
19 if [ "$most_recent" == "$sha" ]
20 then
21 echo "most recent commit is the same, sleeping"
22 # sec - min - hr
23 sleep $((1 * 60 * 60 * $2))
24 continue
25 fi
26
27 echo "found new commit $sha"
28 ./generate.sh
29done