From 918aea75ce621e59e0324118906b1078d5473318 Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 9 Nov 2022 10:55:05 +0100 Subject: [PATCH 1/2] Cleanup old lychee bin after install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Having the lychee bin stick around after installation causes problems. ``` mkdir: cannot create directory ‘lychee’: File exists /home/runner/work/_actions/lycheeverse/lychee-action/xx/entrypoint.sh: line 33: lychee/out.md: Not a directory ``` This change removes the installation binary after installation. --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 56a8baf..343872c 100644 --- a/action.yml +++ b/action.yml @@ -27,7 +27,7 @@ inputs: required: false output: description: "Summary output file path" - default: "lychee/out.md" + default: "lychee/output.md" required: false outputs: exit_code: @@ -41,6 +41,7 @@ runs: curl -sLO 'https://github.com/lycheeverse/lychee/releases/download/v${{ inputs.LYCHEEVERSION }}/lychee-v${{ inputs.LYCHEEVERSION }}-x86_64-unknown-linux-gnu.tar.gz' tar -xvzf lychee-v${{ inputs.LYCHEEVERSION }}-x86_64-unknown-linux-gnu.tar.gz install -t $HOME/.local/bin -D lychee + rm lychee echo "$HOME/.local/bin" >> $GITHUB_PATH shell: bash - name: Run lychee From 78e6686df1df2ba127e905f13d06937df5afc9ad Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 9 Nov 2022 10:55:34 +0100 Subject: [PATCH 2/2] Update action.yml --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 343872c..9dcd9dd 100644 --- a/action.yml +++ b/action.yml @@ -27,7 +27,7 @@ inputs: required: false output: description: "Summary output file path" - default: "lychee/output.md" + default: "lychee/out.md" required: false outputs: exit_code: