-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
33 lines (32 loc) · 902 Bytes
/
action.yml
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
name: 'Steplix notify'
description: 'Notify slack using templates'
inputs:
template:
required: true
default: "push"
status:
required: true
slack_webhook_url:
required: false
steps:
required: false
channel:
required: false
icon_url:
required: false
default: https://s3-us-west-2.amazonaws.com/slack-files2/bot_icons/2023-01-09/4618522117268_48.png
runs:
using: "composite"
steps:
- run: echo Notifying Slack
shell: bash
- name: slack - GitHub Actions Slack integration
uses: act10ns/[email protected]
with:
status: ${{ inputs.status }}
steps: ${{ inputs.steps }}
config: ${{ github.action_path }}/templates/${{ inputs.template }}.yml
channel: ${{ inputs.channel }}
env:
SLACK_WEBHOOK_URL: ${{ inputs.slack_webhook_url || env.SLACK_WEBHOOK_URL }}
ICON_URL: ${{ inputs.icon_url }}