Azure / apiops

APIOps applies the concepts of GitOps and DevOps to API deployment. By using practices from these two methodologies, APIOps can enable everyone involved in the lifecycle of API design, development, and deployment with self-service and automated tools to ensure the quality of the specifications and APIs that they’re building.
https://azure.github.io/apiops
MIT License
323 stars 191 forks source link

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

Open martin2176 opened 4 hours ago

martin2176 commented 4 hours ago

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

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

github-actions[bot] commented 4 hours ago
  Thank you for opening this issue! Please be patient while we will look into it and get back to you as this is an open source project. In the meantime make sure you take a look at the [closed issues](https://github.com/Azure/apiops/issues?q=is%3Aissue+is%3Aclosed) in case your question has already been answered. Don't forget to provide any additional information if needed (e.g. scrubbed logs, detailed feature requests,etc.).
  Whenever it's feasible, please don't hesitate to send a Pull Request (PR) our way. We'd greatly appreciate it, and we'll gladly assess and incorporate your changes.