'How to change working directory in self-hosted runner?
I have a self hosted runner fully configured and working fine. But there's one simple issue, my working directory is /var/www/repo_name while the workflow clones inside my repo folder like this /var/www/repo_name/repo_name. When I use ${GITHUB_WORKSPACE} it returns /var/www, which is correct and that's what I have set during the configuration. I have also tried adding:
defaults:
run:
working-directory: /var/www/repo_name
but still no luck. Is there any way I can point it to the correct repo folder on my server?
Solution 1:[1]
So you are using a mailgun library, which already returns object, so you can just do something like this:
echo $results->getMessage();
i dont know the exact function name of 'getMessage' but with good IDE it should hint you with autocompletion...
This should return:
"Domain has been created"
If you could provide bettter print_r that is not on one line, but with proper newlines and link to MailGun library, and what stuff you want to read, i can update the answer.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
