diff --git a/.github/workflows/spelling.yaml b/.github/workflows/spelling.yaml index 85b057c5..a0555f4d 100644 --- a/.github/workflows/spelling.yaml +++ b/.github/workflows/spelling.yaml @@ -78,7 +78,7 @@ jobs: echo "head_commit_message = $head_commit_message" if [[ $head_commit_message == *"$SKIP_INSTRUCTION"* ]]; then echo "Skip instruction detected - cancelling the workflow." - curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v$GH_CLI_VERSION/gh_$GH_CLI_VERSION_linux_amd64.tar.gz + curl -s -LJ -o gh.tar.gz https://github.com/cli/cli/releases/download/v${GH_CLI_VERSION}/gh_${GH_CLI_VERSION}_linux_amd64.tar.gz tar -xzf gh.tar.gz --strip-components 2 ./gh version ./gh run cancel ${{ github.run_id }}