-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
75 lines (75 loc) · 2.55 KB
/
action.yaml
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
70
71
72
73
74
75
name: Heart (webpages evaluation)
author: Bastien Gatellier
description: Evaluate webpages (GreenIT, performances, security) using Heart
branding:
icon: heart
color: purple
inputs:
analysis_service:
description: |
Service name that analyze the URL.
Available values: greenit, lighthouse, observatory, ssllabs-server.
required: true
default: ''
config:
description: Configuration used by the analysis service. File path to a JSON file or JSON-inlined string.
required: true
default: ''
threshold:
description: Check if the score of the result reaches the given threshold (between 0 and 100).
required: false
default: ''
listener_services_except:
description: |
Comma-separated list (without spaces) of listener services that will not be triggered once the analysis is done.
This parameter is mutually exclusive with the listener_services_only one.
Available values: mysql, slack.
required: false
default: ''
listener_services_only:
description: |
Comma-separated list (without spaces) of listener services that will be triggered once the analysis is done.
This parameter is mutually exclusive with the listener_services_except one.
Available values: mysql, slack
required: false
default: ''
mysql_database_url:
description: Location and credentials of your MySQL database, in a URL format.
required: false
default: ''
observatory_api_url:
description: Location of the Observatory API.
required: false
default: ''
observatory_analyze_url:
description: Location of the Observatory website to view the the results.
required: false
default: ''
slack_access_token:
description: Slack access token.
required: false
default: ''
slack_channel_id:
description: Slack channel where the analysis results will be send.
required: false
default: ''
verbose:
description: Displays debug information
required: false
default: ''
runs:
using: docker
image: Dockerfile
args:
- ${{ inputs.analysis_service }}
- ${{ inputs.config }}
- ${{ inputs.threshold }}
- ${{ inputs.listener_services_except }}
- ${{ inputs.listener_services_only }}
- ${{ inputs.verbose }}
env:
HEART_MYSQL_DATABASE_URL: ${{ inputs.mysql_database_url }}
HEART_OBSERVATORY_API_URL: ${{ inputs.observatory_api_url }}
HEART_OBSERVATORY_ANALYZE_URL: ${{ inputs.observatory_analyze_url }}
HEART_SLACK_ACCESS_TOKEN: ${{ inputs.slack_access_token }}
HEART_SLACK_CHANNEL_ID: ${{ inputs.slack_channel_id }}