-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
33 lines (32 loc) · 1.19 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
# action.yml
name: 'Workflow Status'
description: 'Returns workflow summery status(success, cancelled, failure), in case of failure it also returns the job and step of failure'
inputs:
workflow_name: # id of input
description: 'name of current workflow'
required: true
default: '<placeholder-workflow-name>'
github_run_id:
description: 'A unique number for each workflow run within a repository.'
required: true
default: '<placeholder-github-run-id>'
github_repository:
description: 'The owner and repository name.'
required: true
default: '<placeholder-github-repository>'
outputs:
workflow_result: # id of output
description: 'The result of the current workflow run (success,cancelled,failure)'
failed_job:
description: 'The name of the job that was failed(only if workflow conclusion is failure)'
failed_step:
description: 'The name of the step that was failed(only if workflow conclusion is failure)'
notification_color:
description: 'color for slack notification. '
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.workflow_name }}
- ${{ inputs.github_run_id }}
- ${{ inputs.github_repository }}