cspell-action icon indicating copy to clipboard operation
cspell-action copied to clipboard

Support reading `cspell.json` from a URL

Open Nightblade opened this issue 3 years ago • 2 comments

Description

Can't use cspell.json from a URL.

To Reproduce

  1. Create a minimal cspell-action.yml in a repo (note the config: param) :
name: 'cspell-action-test'

on:
  pull_request:
  push:
  workflow_dispatch:

jobs:
  spellcheck:
    runs-on: ubuntu-latest
    steps:
      - name: Check out repo
        uses: actions/checkout@v3

      - name: Run cspell-action
        uses: streetsidesoftware/[email protected]
        with:
          config: 'https://raw.githubusercontent.com/Nightblade/pob-dict/main/cspell.json'
  1. Run the action.
  2. Check the action's log.
  3. See error: Error: Configuration file "https://raw.githubusercontent.com/Nightblade/pob-dict/main/cspell.json" not found.
  4. Details: https://github.com/Nightblade/PathOfBuilding/runs/7643610725?check_suite_focus=true

Expected behavior

Allow using cspell.json (and dictionaries) from a URL.

Nightblade avatar Aug 03 '22 02:08 Nightblade

Sorry, I just realised I probably should've put this in https://github.com/streetsidesoftware/cspell-action Happy to re-create it there if you prefer.

On reflection, this is probably a feature request as well... I'm winning today already!

Nightblade avatar Aug 03 '22 02:08 Nightblade

This would be great. I'm now looking to deploy a default cspell action in my organization. Now I'd have to wrap the cspell-action in a action that takes care of writing/copying the organization-default cspell.json and installing dictionaries. Having that be part of cspell or cspell-action would be great.

nicorikken avatar Apr 03 '23 14:04 nicorikken