Welcome to mirror list, hosted at ThFree Co, Russian Federation.

notify.yml « workflows « .github - github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 370b54c78b04d56481308e6d8825490ab9aae4da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Get Conan Recipe Version

on:
    workflow_call:
        inputs:
            success:
                required: true
                type: boolean

            success_title:
                required: true
                type: string

            success_body:
                required: true
                type: string

            failure_title:
                required: true
                type: string

            failure_body:
                required: true
                type: string


jobs:
    slackNotification:
        name: Slack Notification

        runs-on: ubuntu-latest

        steps:
            -   name: Slack notify on-success
                if: ${{ inputs.success }}
                uses: rtCamp/action-slack-notify@v2
                env:
                    SLACK_USERNAME: ${{ github.repository }}
                    SLACK_COLOR: green
                    SLACK_ICON: https://github.com/Ultimaker/Cura/blob/main/icons/cura-128.png?raw=true
                    SLACK_TITLE: ${{ inputs.success_title }}
                    SLACK_MESSAGE: ${{ inputs.success_body }}
                    SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}

            -   name: Slack notify on-failure
                if: ${{ !inputs.success }}
                uses: rtCamp/action-slack-notify@v2
                env:
                    SLACK_USERNAME: ${{ github.repository }}
                    SLACK_COLOR: red
                    SLACK_ICON: https://github.com/Ultimaker/Cura/blob/main/icons/cura-128.png?raw=true
                    SLACK_TITLE: ${{ inputs.failure_title }}
                    SLACK_MESSAGE: ${{ inputs.failure_body }}
                    SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}