mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
54 lines
1.7 KiB
YAML
54 lines
1.7 KiB
YAML
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 }}
|