Merge pull request #615 from ZeitOnline/dependabot/github_actions/act… #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 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}} |