Block merge if github actions are failed

2.7k Views Asked by At

I have setup Github action for python app, it's located at .github/workflows/python-app.yml

with details as


on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build:
...

This executes fine however, We want to block if actions fails, I'm unable to search this status under Status checks that are required. enter image description here

1

There are 1 best solutions below

0
On

It was issue of name inside build which was not there in template

jobs:
  build:
    name: syntax-check

    runs-on: ubuntu-latest