Skip to content

Merge pull request #837 from ZeitOnline/WCM-268_bug #1045

Merge pull request #837 from ZeitOnline/WCM-268_bug

Merge pull request #837 from ZeitOnline/WCM-268_bug #1045

Workflow file for this run

name: pre-commit
on:
push:
branches:
- main
pull_request:
env:
PROJECT: vivi
BUILD_URL: "${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}"
concurrency: precommit_branch_${{github.ref_name}}
jobs:
pre-commit:
runs-on: zon-ubuntu-general-dind
permissions:
contents: read
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: "3.12"
- uses: pre-commit/[email protected]
- uses: slackapi/[email protected]
if: failure() && github.ref_name == 'main'
with:
channel-id: "${{secrets.SLACK_TEAM_CONTENT_CHANNEL_ID}}"
slack-message: ":small_red_triangle_down: <${{env.BUILD_URL}}|${{env.PROJECT}}> tests failed"
env:
SLACK_BOT_TOKEN: ${{secrets.SLACK_BOT_TOKEN}}