Skip to content

Commit

Permalink
Cleanup old lychee bin after install (#172)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mre authored Nov 9, 2022
1 parent 02de231 commit 0682ed6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0682ed6

Please sign in to comment.