Home > Blockchain >  Why Github workflows doesn't recognize command?
Why Github workflows doesn't recognize command?

Time:09-07

I built a github workflow and for some reason it doesn't recognize the dita.bat file as a command. All the files are present in the repo and checkout is performed.

Error:

ant
ant.bat
dita
dita.bat
sudo: ./dita.bat: command not found
Error: Process completed with exit code 1.

Github workflow step:

- name: Build WebHelp Responsive
    run: |
        cd oxygen-publishing-engine-3.x/bin
        ls
        sudo ./dita.bat --input=../../doc/project-documentation/search-service- 
        doc.ditamap --format=webhelp-responsive - 
        Dwebhelp.publishing.template=../../templates/webhelp-documentation-template -- 
        output=../../doc/project-documentation/out

CodePudding user response:

All I had to do is to make the script executable by using chmod x filename. Credits to Krzysztof Madej

CodePudding user response:

Please add chmod x filename before calling your script.

  • Related