Legion2 / swagger-ui-action

Generate Swagger UI in a GitHub Actions workflow
MIT License
49 stars 6 forks source link

Unable to locate executable file: curl. #484

Open tabbi89-jobox opened 3 weeks ago

tabbi89-jobox commented 3 weeks ago
Warning: Unexpected input(s) 'GITHUB_TOKEN', valid inputs are ['output', 'version', 'spec-file', 'spec-url', 'swagger-config-file', 'swagger-config-url']
Run Legion[2](XXX#step:11:2)/swagger-ui-action@v1
/usr/bin/docker exec  XXX sh -c "cat /etc/*release | grep ^ID"
Configuration: {
  "configMode": "specFile",
  "specFile": "swagger.json",
  "specUrl": "",
  "swaggerConfigFile": "",
  "swaggerConfigUrl": "",
  "swaggerUIVersion": "^3.0.0",
  "outputPath": "swagger-ui"
}
Swagger UI version: v3.52.5
Error: Error: Unable to locate executable file: curl. Please verify either the file path exists or the file can be found within a directory specified by the PATH environment variable. Also check the file mode to verify the file is executable.

Job runs on ubuntu

Legion2 commented 3 weeks ago

Can you please provide the action yaml definition of this job

tabbi89-jobox commented 3 weeks ago
- name: Generate Swagger UI
  uses: Legion2/swagger-ui-action@v1
  with:
    output: swagger-ui
    spec-file: swagger.json
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to GitHub Pages
  uses: peaceiris/actions-gh-pages@v3
  with:
    github_token: ${{ secrets.GITHUB_TOKEN }}
    publish_dir: swagger-ui
Legion2 commented 3 weeks ago

please checkout the new release https://github.com/Legion2/swagger-ui-action/releases/tag/v1.3.0