Vikrant Pawar
Vikrant Pawar

Reputation: 909

Block merge if github actions are failed

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

Upvotes: 7

Views: 3855

Answers (1)

Vikrant Pawar
Vikrant Pawar

Reputation: 909

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

jobs:
  build:
    name: syntax-check

    runs-on: ubuntu-latest

Upvotes: 5

Related Questions