PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, October 9, 2022

[FIXED] Why Github workflows doesn't recognize command?

 October 09, 2022     cd, continuous-integration, github, github-actions     No comments   

Issue

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

Solution

Please add chmod +x filename before calling your script.



Answered By - Krzysztof Madej
Answer Checked By - Pedro (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing