generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
41 lines (41 loc) · 1.58 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: 'Quick Chart Report'
description: 'The github action that use to generate chart image of the repository statistics'
author: 'Minuth Prom'
branding:
icon: 'activity'
color: 'green'
inputs:
token:
description: >
Personal access token (PAT) used to fetch the repository. The PAT is configured
with the local git config, which enables your scripts to run authenticated git
commands.
[Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets)
required: true
file_path:
description: The directory to store chart image. By default it will store at the root directory.
default: '.'
file_name:
description: The file name of chart image and the file extension must be PNG file. By default its name is chart-report.png
default: 'chart-report.png'
runs:
using: 'composite'
steps:
- uses: minuth/report-action@main
id: report_action
with:
token: ${{inputs.token}}
- name: generate the chart image
shell: bash
env:
INPUT_TOKEN: ${{inputs.token}}
INPUT_FILE_PATH: ${{inputs.file_path}}
INPUT_FILE_NAME: ${{inputs.file_name}}
run: node ${{github.action_path}}/dist/index.js '${{steps.report_action.outputs.report}}'
- name: commit & push generated chart
uses: actions-js/push@master
with:
author_email: [email protected]
author_name: chart-report-action
github_token: ${{inputs.token}}
message: 'generate chart'