Skip to content

Support reading cspell.json from a URL #869

Description

@Nightblade

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/cspell-action@v2.4.0
        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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions