Skip to content

Commit

Permalink
new notif
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladyslav Hlushchenko committed Apr 9, 2024
1 parent c719387 commit 1979f34
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
3 changes: 3 additions & 0 deletions .github/config/slack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ fallback: |-
[GitHub] {{workflow}} #{{runNumber}} {{jobName}} is {{jobStatus}}
fields:
- title: Job Steps
value: "{{#each jobSteps}}{{icon this.outcome}} {{@key}}\n{{/each}}"
short: false
- title: Job Matrix
value: "{{#each jobMatrix}}{{@key}}: {{this}}\n{{/each}}"
short: false
Expand Down
23 changes: 13 additions & 10 deletions .github/workflows/slack_notification_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ jobs:
job1:
runs-on: ubuntu-latest
steps:
- name: Slack Failed Build Notification
id: fall
run: eco 123 asd asd sad
- name: Slack Failed Build Notification
uses: act10ns/[email protected]
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
config: ".github/config/slack.yml"
# - name: Slack Failed Build Notification
# id: fall
# run: eco 123 asd asd sad
# - name: Slack Failed Build Notification
# uses: act10ns/[email protected]
# with:
# status: ${{ job.status }}
# steps: ${{ toJson(steps) }}
# config: ".github/config/slack.yml"
test-job:
if: always()
needs: job1
Expand All @@ -27,10 +27,13 @@ jobs:
id: checkout
uses: actions/checkout@v3
- uses: technote-space/workflow-conclusion-action@v3
- name: test
id: test
run: echo 123
- name: Slack Failed Build Notification
uses: act10ns/[email protected]
with:
status: ${{ github.event.workflow_run.conclusion }}
status: ${{ job.status }}
config: ".github/config/slack.yml"

webhook-url: ${{ secrets.SLACK_WEBHOOK_TEST_VLAD }}
Expand Down

0 comments on commit 1979f34

Please sign in to comment.