diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 75cbcfe..5bd731e 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -17,7 +17,7 @@ permissions: concurrency: group: "pages" - cancel-in-progress: true + cancel-in-progress: false jobs: updatexkcd: @@ -39,17 +39,17 @@ 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 --general-numeric-sort | tail -n 1) -# - name: Copy old index -# run: cp result/www/index.html _old_index.html + - name: Previously downloaded until + run: echo $(cd result/www; (echo 1; for i in [0-9]*; do echo $i; done) | sort --general-numeric-sort | tail -n 1) + - 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 --general-numeric-sort | tail -n 1) )) -t 40 +# 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 --general-numeric-sort | tail -n 1) )) -t 40 # go run . output-dir -f from -t to - name: concat index.html run: ./concat_htmls.sh result/www/index.html _old_index.html > _new_index.html; mv _new_index.html result/www/index.html