Questions tagged [github-actions-self-hosted-runners]

Use this tag when asking questions specific to self-hosted runners for GitHub Actions.

GitHub Actions offers the option to self-host your runners instead of using the cloud-based runners provided by GitHub. Using a self-hosted runner provides more control about the runner's configuration.

124 questions
3
votes
1 answer

Github action runner error WRITE ERROR: Object reference not set to an instance of an object

During Github action self-runner configuration on Ubuntu 18 getting Error Object reference not set to an instance of an object. I used the following commands to configure it mkdir actions-runner && cd actions-runner curl -o…
3
votes
2 answers

Does Github Action supports the on-demand self-hosted runner?

We need to use the Github action self-hosted runner because we need to have an access to the on-premises resource. I understand that we can run the self-hosted runner on VM or the docker container. Can we run the self-hosted runner on-demand? Like…
2
votes
2 answers

Select all the files with a spefic extension Github actions workflow

Hi I am trying to run a pre-commit hook on all the files with .sql extension. I was wondering how can I do that. All those files with .sql are in the models/ directory, but I have sub-directories within that directory too (to group those sql files)…
2
votes
3 answers

Remove default labels on GitHub self hosted runner

When creating a new self-hosted runner for GitHub (enterprise), some default labels (Windows, X64, self-hosted) are automatically added. I can also add custom labels with the --labels parameter. The thing is that I would like to reserve this runner…
2
votes
1 answer

Github Self-hosted runner not getting latest version of code

I have self-hosted runner with the below yml file. Everything runs successfully, but when I ssh into the server and cd to the application directory, the code is one commit behind the main branch. If I run git pull, it pulls the latest commit. Here…
Kevin
  • 895
  • 2
  • 10
  • 21
2
votes
0 answers

lerna publish not working in GitHub Actions

We have a monorepo that we are using Lerna to publish to a private package manager (nexus). When the action runs, it fails with same vague message: info cli using local version of lerna lerna notice cli v5.3.0 lerna info ci enabled Error: Process…
2
votes
1 answer

How to make my self hosted GitHub runner run jobs in a docker container instead of the native shell and OS?

I registered my Raspberry Pi 4 as a self hosted runner for GitHub. It works but all the jobs are run on the native system itself. How can I make GitHub also create a Docker container on the runner so that the underlying system remains clean? It…
John
  • 871
  • 2
  • 9
  • 20
2
votes
1 answer

flutter build ipa works locally, but not when run on github actions on the same machine

I create an empty flutter project using Flutter 3.0.0 (also tried 2.10.5). I can build it, run it on my iPhone and archive the app from the command line. When running the same commands through Github Actions Im unable to archive my app. The same…
2
votes
1 answer

Github actions error- Error: Process completed with exit code 127

Please, help me resolve this issue: I'm running GitHub actions with custom runners, when I changed from ubuntu latest to self-hosted, I started getting this error. Run terraform init /usr/bin/env: node: No such file or directory Error: Process…
2
votes
1 answer

Using GitHub Actions, how do I pull the new change from origin?

I am trying to pull change from origin using GitHub Actions. I have a workflow in yml file set up like below. I have a runner (self-hosted) set up on my apache server so that it will run git pull when code is pushed to xxx branch. I confirmed that…
2
votes
1 answer

How to upgrade Self-hosted action runner?

Self-hosted GitHub actions runner installed on Linux, Windows and Mac systems. I need to upgrade the runner version to latest on Linux, Windows and MacOS. How to check the currently installed Runner version? In runner log and service status side,…
2
votes
1 answer

Jobs not connecting to MySQL service for self hosted GitHub Actions on ECS

I have a self hosted GitHub Actions running in ECS and it has been working wonders, until I have to deal with service discovery. The below is the workflow file name: Checks before merging for core-service server on: push: paths: -…
2
votes
0 answers

How to limit CPU/Memory - GitHub actions self hosted runners

I'm running multiple self hosted runners in one machine. I'd like to give specific # of CPU cores/memory to each runners. How can I achieve this? ps) I can not use VM. ps) As I googled, launching via docker have some limitations as I googled. Docker…
Dorr
  • 577
  • 1
  • 8
  • 22
2
votes
1 answer

Why does a Github Action on a Linux self-hosted runner require a user swap for every command if you dont want to run on root

I'm wrote a workflow to install some tool dependencies on a Linux self-hosted GitHub runner VM. I'm using homebrew to do the tool installs. Using homebrew requires that it not be run on the root user which is what the GitHub Runner logs in as. I'm…
2
votes
0 answers

How to run a persistent process using GitHub Actions?

I would like to start my web server using npm start which will continue to run even after the GitHub Actions workflow completes. I attempted to do this using the action - run: npm start &. However, this doesn't work. I suspect this command spawns…
1
2
3
8 9