diff --git a/action.yml b/action.yml index e6dfc61..016ee81 100644 --- a/action.yml +++ b/action.yml @@ -36,6 +36,7 @@ runs: run: $GITHUB_ACTION_PATH/action/entrypoint.sh shell: bash env: + INSTALL_DIR: . INPUT_FILES: ${{ inputs.files }} INPUT_EXTEND_IDENTIFIERS: ${{ inputs.extend_identifiers }} INPUT_EXTEND_WORDS: ${{ inputs.extend_words }} diff --git a/action/entrypoint.sh b/action/entrypoint.sh index c4963cb..923cb74 100755 --- a/action/entrypoint.sh +++ b/action/entrypoint.sh @@ -38,7 +38,7 @@ if [[ ! -x ${COMMAND} ]]; then log "Downloading 'typos' v${VERSION}" wget --progress=dot:mega "https://github.com/crate-ci/typos/releases/download/v${VERSION}/typos-v${VERSION}-x86_64-unknown-linux-musl.tar.gz" mkdir -p ${_INSTALL_DIR} - sudo tar -xzvf typos-v${VERSION}-x86_64-unknown-linux-musl.tar.gz -C ${_INSTALL_DIR} ./${CMD_NAME} + tar -xzvf typos-v${VERSION}-x86_64-unknown-linux-musl.tar.gz -C ${_INSTALL_DIR} ./${CMD_NAME} rm typos-v${VERSION}-x86_64-unknown-linux-musl.tar.gz fi log "jq: $(jq --version)"