Skip to content

Commit

Permalink
fix(action): Don't require sudo
Browse files Browse the repository at this point in the history
Fixes #723
  • Loading branch information
epage committed May 22, 2023
1 parent 324cc67 commit 3a0fa5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion action/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 3a0fa5b

Please sign in to comment.