Skip to content

Instantly share code, notes, and snippets.

@Zeyu-Li
Created October 23, 2022 23:37
Show Gist options
  • Select an option

  • Save Zeyu-Li/a95cef4405b4a5667420ae678f23c3ad to your computer and use it in GitHub Desktop.

Select an option

Save Zeyu-Li/a95cef4405b4a5667420ae678f23c3ad to your computer and use it in GitHub Desktop.
Running github actions locally
[Unit]
Description="run.service added by add_service: Namespace(name=None, script='/home/ubuntu/actions-runner/run.sh', start=False, user='ubuntu')"
After=network.service
[Service]
Type=simple
User=ubuntu
Group=ubuntu
WorkingDirectory=/home/ubuntu/actions-runner
ExecStart=/home/ubuntu/actions-runner/run.sh
PrivateTmp=true
Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment