-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
69 lines (68 loc) · 2.11 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Notify Teams
description: |
A Github action that notifies about workflow status via Microsoft Teams.
inputs:
incoming_webhook:
description:
Public URL of the Microsoft Teams incoming webhook. To get the value, make sure that channel in Teams
has the appropriate connector set up.
required: true
notify_on:
description: The list of states to notify on. Allowed values are `failure`, `fixed` and `success`.
required: true
default: |
failure
fixed
job:
description: The ID of the current job.
required: true
default: ${{ github.job }}
job_context:
description: The current job context, must be encoded as JSON.
required: true
default: ${{ toJSON(job) }}
needs_context:
description: The list of dependent job contexts, must be encoded as JSON.
required: false
repository:
description:
The currently checked out source repository name. Repository names should follow the standard Github
`owner/name` format.
required: true
default: ${{ github.repository }}
branch:
description: The repository branch name to check the CI workflow status for.
required: true
default: ${{ github.ref }}
sha:
description: The current repository commit SHA.
required: true
default: ${{ github.sha }}
workflow:
description: The name of the current workflow.
required: true
default: ${{ github.workflow }}
workflow_id:
description: The ID or filename of the CI workflow to check.
required: true
default: ci.yml
run_id:
description: The ID of the current workflow run.
required: true
default: ${{ github.run_id }}
github_token:
description: Github access token, with `actions:read` scope.
required: true
default: ${{ github.token }}
outputs:
jobs:
description: List of considered jobs and their stats.
workflow_status:
description: Status of the previous workflow run.
previous_conclusion:
description: Conclusion of the previous workflow run.
message_sent:
description: Whether or not the message has been sent.
runs:
using: node16
main: dist/index.js