swagger-ui-action icon indicating copy to clipboard operation
swagger-ui-action copied to clipboard

Unable to locate executable file: curl.

Open tabbi89-jobox opened this issue 1 year ago • 3 comments

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

tabbi89-jobox avatar Sep 27 '24 06:09 tabbi89-jobox

Can you please provide the action yaml definition of this job

Legion2 avatar Sep 27 '24 08:09 Legion2

- 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

tabbi89-jobox avatar Sep 27 '24 09:09 tabbi89-jobox

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

Legion2 avatar Sep 27 '24 11:09 Legion2