[BUG] syntax error in run-publisher-with-env.yaml (using forward slash instead of backslash and not using glob pattern)

Open
#701 3 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

Assessment

This issue has not been assessed yet.

Description

Release version

v6.0.1.3

Describe the bug

@fabienmazieres
I found that using the run-publisher-with-env.yaml which is published on the github doesn't run the spectral lint correctly due to syntax error.
This is what is in the yaml

Run Spectral
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm install -g @stoplight/spectral-cli
- run: spectral lint "${{ GITHUB.WORKSPACE }}/${{ inputs.API_MANAGEMENT_SERVICE_OUTPUT_FOLDER_PATH }}\apis*.{json,yml,yaml}" --ruleset https://raw.githubusercontent.com/connectedcircuits/devops-api-linter/main/rules.yaml

  1. The job runs on ubuntu-latest. So the forward slash directory reference is wrong
  2. under the apis directory, each api have a subdirectory. So a glob pattern should be used to match subdirectories
    The correct syntax is given below.
Expected behavior
Actual behavior

spectral lint doesnt run as expected

Reproduction Steps

Run the GH Actions pipeline provided in the github

Dominant language
C#
Stars
448
Forks
247
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Azure/apiops

All issues in Azure/apiops

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.