-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
71 lines (71 loc) · 2.21 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
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: dareboost, greenit, lighthouse, observatory, ssllabs-server
required: true
default: ''
file:
description: Set the file path to the JSON configuration used by the analysis service.
required: false
default: ''
inline:
description: Set the inline string of the JSON configuration used by the analysis service.
required: false
default: ''
threshold:
description: Check if the score of the result reaches the given threshold (between 0 and 100).
required: false
default: ''
listener_services:
description: |
Services names that process the result of the analyze, separated by commas.
Available values: bigquery, slack
required: false
default: ''
dareboost_api_token:
description: Dareboost API token
required: false
default: ''
google_application_credentials:
description: Google Service account
required: false
default: ''
observatory_api_url:
description: Location of the Observatory API
required: false
default: ''
observatory_analyze_url:
description: Location of the Observatory website that provides the results
required: false
default: ''
slack_api_token:
description: Slack API token
required: false
default: ''
slack_channel_id:
description: Slack channel where the analysis results will be send
required: false
default: ''
runs:
using: docker
image: Dockerfile
args:
- ${{ inputs.analysis_service }}
- ${{ inputs.file }}
- ${{ inputs.inline }}
- ${{ inputs.threshold }}
- ${{ inputs.listener_services }}
env:
DAREBOOST_API_TOKEN: ${{ inputs.dareboost_api_token }}
GOOGLE_APPLICATION_CREDENTIALS: ${{ inputs.google_application_credentials }}
OBSERVATORY_API_URL: ${{ inputs.observatory_api_url }}
OBSERVATORY_ANALYZE_URL: ${{ inputs.observatory_analyze_url }}
SLACK_API_TOKEN: ${{ inputs.slack_api_token }}
SLACK_CHANNEL_ID: ${{ inputs.slack_channel_id }}