Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 727
Vikrant Pawar Avatar asked Jun 28 '26 10:06

Vikrant Pawar


1 Answers

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

jobs:
  build:
    name: syntax-check

    runs-on: ubuntu-latest
like image 118
Vikrant Pawar Avatar answered Jun 30 '26 07:06

Vikrant Pawar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!