GitHub Enterprise Actions

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