-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4ecd42
commit 258de01
Showing
1 changed file
with
2 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,22 +29,5 @@ jobs: | |
name: "Checkout repository" | ||
uses: "actions/[email protected]" | ||
- | ||
name: "Search for misspellings" | ||
#uses: "crate-ci/[email protected]" | ||
env: | ||
GH_TOKEN: "${{ github.token }}" | ||
# yamllint disable rule:line-length | ||
run: | | ||
set -o pipefail | ||
mkdir -p "${{ runner.temp }}/typos" | ||
RELEASE_ASSET_URL="$( | ||
gh api /repos/crate-ci/typos/releases/latest \ | ||
--jq '."assets"[] | select(."name" | test("^typos-.+-x86_64-unknown-linux-musl\\.tar\\.gz$")) | ."browser_download_url"' | ||
)" | ||
wget --secure-protocol=TLSv1_3 --max-redirect=1 --retry-on-host-error --retry-connrefused --tries=3 \ | ||
--quiet --output-document=- "${RELEASE_ASSET_URL}" \ | ||
| tar -xz -C "${{ runner.temp }}/typos" ./typos | ||
"${{ runner.temp }}/typos/typos" --version | ||
git grep --files-with-matches --null -I -e '.' \ | ||
| xargs --null --verbose -- "${{ runner.temp }}/typos/typos" --format json \ | ||
| jq --raw-output '"::warning file=\(.path),line=\(.line_num),col=\(.byte_offset)::\"\(.typo)\" should be \"" + (.corrections // [] | join("\" or \"") + "\".")' | ||
name: Hello world action step | ||
uses: ./ | ||