fix(action): Don't require sudo

Fixes #723
This commit is contained in:
Ed Page 2023-05-22 13:30:04 -05:00
parent 324cc67c99
commit 3a0fa5b9fd
2 changed files with 2 additions and 1 deletions

View file

@ -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 }}

View file

@ -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)"