Skip to content

Notify a github webhook when code quality checks fail on main #121

Notify a github webhook when code quality checks fail on main

Notify a github webhook when code quality checks fail on main #121

Workflow file for this run

name: Run code quality checks
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
code-quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- uses: yezz123/setup-uv@v4
- run: uv sync
- run: .venv/bin/ruff check
notify-on-failure:
if: ${{ always() }}

Check failure on line 27 in .github/workflows/code-checks.yaml

GitHub Actions / Run code quality checks

Invalid workflow file

The workflow is not valid. .github/workflows/code-checks.yaml (Line: 27, Col: 5): Required property is missing: runs-on
steps:
- name: Notify on build failure
uses: nobrayner/discord-webhook@v1
with:
github-token: ${{ secrets.github_token }}
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}