Skip to content

Commit

Permalink
feat: switch to use a temp dir (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Dec 3, 2022
1 parent 364280d commit 8bad465
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions action.yml
Expand Up @@ -46,8 +46,9 @@ runs:
done

if [[ -z "$BIN_PATH" ]]; then
curl -sf https://gobinaries.com/github.com/tj-actions/auto-doc | PREFIX=. sh
BIN_PATH="./auto-doc"
TEMP_DIR=$(mktemp -d)
curl -sf https://gobinaries.com/github.com/tj-actions/auto-doc | PREFIX=$TEMP_DIR sh
BIN_PATH="$TEMP_DIR/auto-doc"
fi

echo "::debug::Generating documentation using ${BIN_PATH}..."
Expand Down

0 comments on commit 8bad465

Please sign in to comment.