From 50597ea7d4d32c903ecf5776e47f971e3e4913ae Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Sun, 21 Jan 2024 07:57:38 -0600 Subject: [PATCH] retry torchlight step if it gets hung --- .github/workflows/deploy-to-neocities.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-to-neocities.yml b/.github/workflows/deploy-to-neocities.yml index a03385c..1ec1fb4 100644 --- a/.github/workflows/deploy-to-neocities.yml +++ b/.github/workflows/deploy-to-neocities.yml @@ -27,6 +27,8 @@ jobs: && sudo dpkg -i ${{ runner.temp }}/hugo.deb - name: Install Dart Sass run: sudo snap install dart-sass + - name: Install Torchlight CLI + run: npm i @torchlight-api/torchlight-cli - name: Checkout uses: actions/checkout@v4 with: @@ -43,9 +45,12 @@ jobs: --minify \ --baseURL "https://runtimeterror.dev/" - name: Highlight with Torchlight - run: | - npm i @torchlight-api/torchlight-cli - npx torchlight + uses: nick-fields/retry@v2 + with: + timeout_seconds: 120 + max_attempts: 3 + retry_wait_seconds: 15 + command: npx torchlight - name: Deploy to neocities uses: bcomnes/deploy-to-neocities@v1 with: