Skip to content

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

Notify a github webhook when code quality checks fail on main

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

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:

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

View workflow run for this annotation

GitHub Actions / Run code quality checks

Invalid workflow file

The workflow is not valid. .github/workflows/code-checks.yaml (Line: 26, Col: 5): Unexpected value 'notify-on-failure'
if: ${{ failure() }}
runs-on: ubuntu-latest
steps:
- name: Notify on build failure
uses: nobrayner/discord-webhook@v1
with:
github-token: ${{ secrets.github_token }}
discord-webhook: ${{ secrets.DISCORD_WEBHOOK }}