Skip to content

Commit c8310a5

Browse files
committed
restore action.yml accident deleted
1 parent 5fa128c commit c8310a5

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

action.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: 'Quick Chart Report'
2+
description: 'The github action that use to generate chart image of the repository statistics'
3+
author: 'Minuth Prom'
4+
inputs:
5+
token:
6+
description: >
7+
Personal access token (PAT) used to fetch the repository. The PAT is configured
8+
with the local git config, which enables your scripts to run authenticated git
9+
commands.
10+
[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)
11+
required: true
12+
file_path:
13+
description: The directory to store chart image. By default it will store at the root directory.
14+
default: '.'
15+
file_name:
16+
description: The file name of chart image and the file extension must be PNG file. By default its name is chart-report.png
17+
default: 'chart-report.png'
18+
runs:
19+
using: 'composite'
20+
steps:
21+
- uses: minuth/report-action@main
22+
id: report_action
23+
with:
24+
token: ${{inputs.token}}
25+
- name: generate the chart image
26+
shell: bash
27+
env:
28+
INPUT_TOKEN: ${{inputs.token}}
29+
INPUT_FILE_PATH: ${{inputs.file_path}}
30+
INPUT_FILE_NAME: ${{inputs.file_name}}
31+
run: node ./dist/index.js '${{steps.report_action.outputs.report}}'
32+
- name: commit & push generated chart
33+
uses: actions-js/push@master
34+
with:
35+
author_email: [email protected]
36+
author_name: chart-report-action
37+
github_token: ${{inputs.token}}
38+
message: 'generate chart'

0 commit comments

Comments
 (0)