diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 64e56a7..0dcdae2 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -39,20 +39,20 @@ jobs: path: old - name: Make output dir run: mkdir -p result/www -# - name: extract -# run: tar -C result/www -xf ./old/github-pages/artifact.tar; find result + - name: extract + run: tar -C result/www -xf ./old/github-pages/artifact.tar; find result - name: Go install run: go install . - name: Previously downloaded until run: echo $(cd result/www; (echo 1; for i in [0-9]*; do echo $i; done) | sort | tail -n 1) -# - name: Copy old index -# run: cp result/www/index.html _old_index.html + - name: Copy old index + run: cp result/www/index.html _old_index.html - name: Go run - run: go run . result/www -f 1 -t 30 -# run: go run . result/www -f $(( 1 + $( cd result/www; (echo 1; for i in [0-9]*; do echo $i; done) | sort | tail -n 1) )) -t 30 +# run: go run . result/www -f 1 -t 30 + run: go run . result/www -f $(( 1 + $( cd result/www; (echo 1; for i in [0-9]*; do echo $i; done) | sort | tail -n 1) )) -t 40 # go run . output-dir -f from -t to - name: concat index.html - run: ./concat_htmls.sh _old_index.html result/www/index.html > _new_index.html; mv _new_index.html result/www/index.html + run: ./concat_htmls.sh result/www/index.html _old_index.html > _new_index.html; mv _new_index.html result/www/index.html - name: find run: find result - name: create .ipfsignore