Skip to content

Commit

Permalink
Use action to install gh CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
walkowif committed Mar 4, 2024
1 parent 4103f38 commit 120d8b4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/spelling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ jobs:
with:
token: ${{ steps.github-token.outputs.token }}

- name: Install GH CLI
uses: dev-hanz-ops/[email protected]
with:
gh-cli-version: 2.44.1

- name: Get commit message 💬
id: get-commit-message
run: |
Expand All @@ -108,8 +113,8 @@ jobs:
echo "head_commit_message = $(git show -s --format=%B | tr '\r\n' ' ' | tr '\n' ' ')"
if [[ $head_commit_message == *"[skip spelling]"* ]]; then
echo "Skip instruction detected - cancelling the workflow."
curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v2.44.1/gh_2.44.1_linux_amd64.tar.gz
tar -xzf gh.tar.gz --strip-components 2
# curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v2.44.1/gh_2.44.1_linux_amd64.tar.gz
# tar -xzf gh.tar.gz --strip-components 2
./gh run cancel ${{ github.run_id }}
./gh run watch ${{ github.run_id }}
fi
Expand Down

0 comments on commit 120d8b4

Please sign in to comment.