File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff line change 8
8
name : Monthly issue metrics
9
9
on : # yamllint disable-line rule:truthy
10
10
workflow_dispatch :
11
- schedule :
12
- - cron : ' 3 2 1 * *'
13
-
11
+ inputs :
12
+ report_date_start :
13
+ description : " Report date start(01/01/2024)"
14
+ required : false
15
+ report_date_end :
16
+ description : " Report date end(11/07/2024)"
17
+ required : false
14
18
permissions :
15
19
issues : write
16
20
pull-requests : read
@@ -24,13 +28,10 @@ jobs:
24
28
shell : bash
25
29
run : |
26
30
# Calculate the first day of the previous month
27
- first_day=$(date -d "last month" +%Y-%m-01)
31
+ first_day=${{ inputs.report_date_start }}
28
32
29
33
# Calculate the last day of the previous month
30
- last_day=$(date -d "$first_day +1 month -1 day" +%Y-%m-%d)
31
-
32
- # Set an environment variable with the date range
33
- echo "last_month=$first_day..$last_day" >> "$GITHUB_ENV"
34
+ last_day=${{ inputs.report_date_end }}
34
35
35
36
- name : Run issue-metrics tool
36
37
uses : github/issue-metrics@v2
You can’t perform that action at this time.
0 commit comments