generated from actions/hello-world-docker-action
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
41 lines (39 loc) · 1.18 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
name: Github Workflow Stats
description: Export Github Workflow stats into Postgres
author: Fedor Dikarev
branding:
icon: activity
color: yellow
# Define your inputs here.
inputs:
db_uri:
description: Postgres DB URI
required: true
db_table:
description: Table name to store Workflow stats
required: true
gh_run_id:
description: Workflow Run Id to get information on
required: false
gh_token:
description: Github Token with permissions to access Workflows. Not required for public repos.
required: false
duration:
description: Duration for the history period to export (in Golang time.parseDuration format)
required: false
default: '1h'
exit_on_token_rate_limit:
description: Do not sleep and just exit when we used github token rate limit
required: false
default: 'true'
runs:
using: docker
image: "docker://neondatabase/gh-workflow-stats-action:v0.2.1"
args:
- -duration=${{ inputs.duration }}
- -exit-on-token-rate-limit=${{ inputs.exit_on_token_rate_limit }}
env:
DB_URI: ${{ inputs.db_uri }}
DB_TABLE: ${{ inputs.db_table }}
GH_RUN_ID: ${{ inputs.gh_run_id }}
GH_TOKEN: ${{ inputs.gh_token }}