diff --git a/.github/workflows/build-lists.yml b/.github/workflows/build-lists.yml index 809ead4..e362c77 100644 --- a/.github/workflows/build-lists.yml +++ b/.github/workflows/build-lists.yml @@ -19,10 +19,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v3 - - name: Build the stretchoid list - run: ./make-stretchoid.sh - name: Build the binaryedge list run: ./make-binaryedge.sh + - name: Build the stretchoid list + run: ./make-stretchoid.sh - name: Post the summary run: | git add -A diff --git a/make-binaryedge.sh b/make-binaryedge.sh index 08aca26..96c0f37 100755 --- a/make-binaryedge.sh +++ b/make-binaryedge.sh @@ -4,6 +4,10 @@ REV="v-$(date --iso-8601=seconds)" cd ./digitalocean/ +if [ ! -d ./binaryedge_revisions/ ]; then + mkdir ./binaryedge_revisions +fi + # With failure handling cat binaryedge_digitalocean_possible_ips.txt | xargs -P 50 -I {} bash -c 'set -eu;rev="$(dig @9.9.9.9 +short +time=1 +tries=1 -x {})"; if [[ "$rev" == *";;"* ]]; then sleep 1; rev="$(dig @8.8.8.8 +short +time=1 +tries=1 -x {})"; fi; echo "{} # $rev";' 1> binaryedge_revisions/$REV.txt diff --git a/make-stretchoid.sh b/make-stretchoid.sh index deee0b1..6080c4f 100755 --- a/make-stretchoid.sh +++ b/make-stretchoid.sh @@ -4,6 +4,10 @@ REV="v-$(date --iso-8601=seconds)" cd ./digitalocean/ +if [ ! -d ./stretchoid_revisions/ ]; then + mkdir ./stretchoid_revisions +fi + # With failure handling cat stretchoid_digitalocean_possible_ips.txt | xargs -P 50 -I {} bash -c 'set -eu;rev="$(dig @9.9.9.9 +short +time=1 +tries=1 -x {})"; if [[ "$rev" == *";;"* ]]; then sleep 1; rev="$(dig @8.8.8.8 +short +time=1 +tries=1 -x {})"; fi; echo "{} # $rev";' 1> stretchoid_revisions/$REV.txt