Skip to content

Commit b8b3519

Browse files
committed
Update Git
1 parent 4a40730 commit b8b3519

3 files changed

Lines changed: 29 additions & 43 deletions

File tree

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ on:
1818

1919
jobs:
2020

21-
code-quality:
21+
build:
2222
name: Install Dependency with Poetry
2323
runs-on: ubuntu-latest
2424
steps:
@@ -38,7 +38,7 @@ jobs:
3838

3939
test:
4040
name: Run tests
41-
needs: code-quality
41+
needs: build
4242
runs-on: ubuntu-latest
4343
steps:
4444
- uses: actions/checkout@v3

.github/workflows/slack-alert.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Slack Alert
2+
3+
# Only trigger, when the build workflow succeeded
4+
on:
5+
workflow_run:
6+
workflows: ["Build and Test"]
7+
types:
8+
- completed
9+
10+
jobs:
11+
alert:
12+
name: Alerts
13+
# if: ${{ github.event.workflow_run.conclusion == 'failure' }}
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Post to a Slack channel
18+
uses: 8398a7/action-slack@v3
19+
with:
20+
status: ${{ job.status }}
21+
author_name: Montoring-Slack from GitHub Actions
22+
fields: repo,message,commit,author,action,eventName,ref,workflow,took # selectable (default: repo,commit,message,author)\
23+
mention: here
24+
if_mention: failure,cancelled
25+
env:
26+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
27+
if: always() # Pick up events even if the job fails or is canceled.

.github/workflows/slack.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)