forked from shink/bark-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
50 lines (50 loc) · 1.3 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: 'Bark Action with custom host'
description: 'An action for bark with custom host supported'
author: Ji Yuanhao <[email protected]>
branding:
icon: 'message-circle'
color: 'red'
inputs:
host:
description: bark service host
required: false
key:
description: Secret key
required: true
title:
description: Message title
required: false
body:
description: Message body
required: false
sound:
description: Message sound
required: false
isArchive:
description: Whether to archive this message
required: false
url:
description: URL to redirect
required: false
automaticallyCopy:
description: Whether to copy this message automatically
required: false
copy:
description: Content copied to clipboard
required: false
runs:
using: "composite"
steps:
- name: Run script
shell: bash
run: $GITHUB_ACTION_PATH/script.sh
env:
INPUT_HOST: ${{ inputs.host }}
INPUT_KEY: ${{ inputs.key }}
INPUT_TITLE: ${{ inputs.title }}
INPUT_BODY: ${{ inputs.body }}
INPUT_SOUND: ${{ inputs.sound }}
INPUT_ISARCHIVE: ${{ inputs.isArchive }}
INPUT_URL: ${{ inputs.url }}
INPUT_AUTOMATICALLYCOPY: ${{ inputs.automaticallyCopy }}
INPUT_COPY: ${{ inputs.copy }}