From 5c4892e8724cfb4b42d9188b9718d36c463b1ee1 Mon Sep 17 00:00:00 2001 From: Alexander Koz Date: Tue, 21 May 2024 00:17:03 +0400 Subject: [PATCH] add fallback - download from original url --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 70897d4..9dfdc2c 100644 --- a/action.yml +++ b/action.yml @@ -85,8 +85,9 @@ runs: # not using cache or have got cache-miss if: (steps.cache-restore.outputs.cache-hit != 'true') || (inputs.cache != 'true') shell: bash - run: | + run: >- curl -L -sS --show-error --fail "${{ steps.direct-url.outputs.url }}" -o ${{ steps.cfg.outputs.filename }} + || curl -L -sS --show-error --fail "${{ steps.cfg.outputs.url }}" -o ${{ steps.cfg.outputs.filename }} - name: Cache save id: cache-save