GitHub enterprise needs “self-hosted” runners to support action system calls if needed. For our actions, we need to host a Linux VM that we listen to for the jobs. To do so we need to follow these steps
- Go to settings -> Runners
- Click on add runner and follow the setups to connect your Linux VM with Github
We use these above commands in our vm like:
Note: Make sure you mkdir the same as the repo name on your GitHub. For example, here we made “ObjcTest” which is the repo name
Check runner if connection “Idle” is available
- To add secrets (API-KEY). Settings -> Secrets -> New Repository Secrets
- For our use case we will name the secret as API_KEY
- Now add our action.yml. In order to do that, make a folder structure like .github -> workflows -> action.yml, On the repo
\
- Make sure that at line 18 of action.yml we have the same APP_NAME as that of the repo name
- Commit and see the action run
- Once the action is done. Check our UI for the results
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article