GitHub Enterprise Actions

Modified on Wed, 11 Oct 2023 at 07:00 PM

Step 1: Setting up runners

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

Step:2 Adding Repo secrets

    • To add secrets (API-KEY). Settings -> Secrets -> New Repository Secrets
    • For our use case we will name the secret as API_KEY

Step 3: Adding our actions.yml

    • 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

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article