Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File and command not found error #283

Open
shurale85 opened this issue Dec 2, 2023 · 0 comments
Open

File and command not found error #283

shurale85 opened this issue Dec 2, 2023 · 0 comments

Comments

@shurale85
Copy link

Hi! I run script on real device to build my iOS project. But it is failed with file not found and command not found errors. However, it is fine to connect to build machine remotely via ssh and run that script. I can't understand what I miss

- name: executing remote ssh commands using password
        uses: appleboy/ssh-action@v1.0.0
        with:
          host: ${{ secrets.MACIP }}
          username: ${{ secrets.BUILDLOGIN }}
          password: ${{ secrets.BUILDPASSWORD }}
          script: cd /Users/someuser/project/ && git pull | sh /Users/someuser/project/build.sh | echo $PWD
          debug: true

image

One more thing I can't get how change working directory correctly. If I use scrpit: cd somepath | git pull then I get error not repository. But if I use cd somepath && git pull - it is ok. What is the difference?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant