Relative Content

Tag Archive for yamlgithub-actions

How to skip a specific runner on github actions?

I have a github action that runs on self-hosted runners. And we have many labels like ‘xsmall’, ‘small’, ‘large’, ‘xlarge’ etc. And all of them have a common label as well like devops. So in many github actions I have something like this

Invalid yaml syntax on github-actions

I am trying to setup a github action but I have an invalid yaml syntax on line 20 run: echo "Merged PR detected: ${{ github.event.pull_request.head.ref }}":

Invalid type found: one of string, number and boolean were expected but found an array

I happen to use runsOn: ‘companytest’ successfully on one application.
I’m trying to use runs-on: [self-hosted,linux,x64,company] but it shows a compiler error on the yaml file in github actions.
Invalid type found: one of string, number and boolean were expected but found an array
What is the difference between runsOn and runs-on ?
How to fix the workflow yaml?