# By User
actor:chriswblake
# By Repo
repo:my-org/our-repo
steps:
- name: Show context
run: echo "${{ toJSON(github) }}"
- name: Show base branch
run: echo "${{ github.event.base_ref }}"
-
Follow the usual process for adding a self-hosted runner to an organization.
- Navigate to the organization.
- Select Settings tab.
- In left navigation, select Actions and Runners
- Select green New runner button.
- Follow prompts.
-
Open the CRON file.
sudo vim /etc/crontab
-
Add an entry at the end to restart the runner after reboot.
- replace
ubuntu
with the username the runner was installed on. - adjust the path if the default was not used.
@reboot ubuntu ~/actions-runner/run.sh
- replace
-
Confirm the file contents
cat /etc/crontab
-
Reboot the machine
sudo reboot
-
Confirm the runner is idle on GitHub.