File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,28 +17,11 @@ jobs:
1717
1818 spelling :
1919 name : Typos
20- runs-on : ubuntu-22.04
21- timeout-minutes : 2
20+ runs-on : ubuntu-latest
2221
2322 steps :
24- - uses : actions/checkout@v4
25- - name : Search for misspellings
26- env :
27- GH_TOKEN : ${{ github.token }}
28- run : |
29- set -o pipefail
30- mkdir -p "${{ runner.temp }}/typos"
31- RELEASE_ASSET_URL="$(
32- gh api /repos/crate-ci/typos/releases/latest \
33- --jq '."assets"[] | select(."name" | test("^typos-.+-x86_64-unknown-linux-musl\\.tar\\.gz$")) | ."browser_download_url"'
34- )"
35- wget --secure-protocol=TLSv1_3 --max-redirect=1 --retry-on-host-error --retry-connrefused --tries=3 \
36- --quiet --output-document=- "${RELEASE_ASSET_URL}" \
37- | tar -xz -C "${{ runner.temp }}/typos" ./typos
38- "${{ runner.temp }}/typos/typos" --version
39- git grep --files-with-matches -I -e '.' -- ':!:dist/' ':!:vendor/' \
40- | "${{ runner.temp }}/typos/typos" --file-list - --format json \
41- | jq --raw-output '"::warning file=\(.path),line=\(.line_num),col=\(.byte_offset)::\"\(.typo)\" should be \"" + (.corrections // [] | join("\" or \"") + "\".")'
23+ - uses : actions/checkout@v4
24+ - uses : crate-ci/typos@master
4225
4326 coding-standards :
4427 name : WordPress Coding Standards
5942 NPM_CONFIG_LOGLEVEL : error
6043
6144 steps :
62- - uses : actions/checkout@v4
45+ - name : Checkout
46+ uses : actions/checkout@v3
6347 - name : Run Plugin Check
6448 uses : wordpress/plugin-check-action@v1
You can’t perform that action at this time.
0 commit comments