@@ -2,7 +2,7 @@ name: Monthly contributor report
22on :
33 workflow_dispatch :
44 schedule :
5- - cron : ' 3 2 1 * *'
5+ - cron : " 3 2 1 * *"
66
77permissions :
88 issues : write
@@ -13,33 +13,32 @@ jobs:
1313 runs-on : ubuntu-latest
1414
1515 steps :
16-
17- - name : Get dates for last month
18- shell : bash
19- run : |
20- # Calculate the first day of the previous month
21- start_date=$(date -d "last month" +%Y-%m-01)
22-
23- # Calculate the last day of the previous month
24- end_date=$(date -d "$start_date +1 month -1 day" +%Y-%m-%d)
25-
26- #Set an environment variable with the date range
27- echo "START_DATE=$start_date" >> "$GITHUB_ENV"
28- echo "END_DATE=$end_date" >> "$GITHUB_ENV"
29-
30- - name : Run contributor action
31- uses : github/contributors@135b0430e856ade27175cbd1d4e1e11b0dd8ef95
32- env :
33- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34- START_DATE : ${{ env.START_DATE }}
35- END_DATE : ${{ env.END_DATE }}
36- REPOSITORY : github/issue-metrics
37- SPONSOR_INFO : " true"
38-
39- - name : Create issue
40- uses : peter-evans/create-issue-from-file@24452a72d85239eacf1468b0f1982a9f3fec4c94
41- with :
42- title : Monthly contributor report
43- token : ${{ secrets.GITHUB_TOKEN }}
44- content-filepath : ./contributors.md
45- assignees : zkoppert
16+ - name : Get dates for last month
17+ shell : bash
18+ run : |
19+ # Calculate the first day of the previous month
20+ start_date=$(date -d "last month" +%Y-%m-01)
21+
22+ # Calculate the last day of the previous month
23+ end_date=$(date -d "$start_date +1 month -1 day" +%Y-%m-%d)
24+
25+ #Set an environment variable with the date range
26+ echo "START_DATE=$start_date" >> "$GITHUB_ENV"
27+ echo "END_DATE=$end_date" >> "$GITHUB_ENV"
28+
29+ - name : Run contributor action
30+ uses : github/contributors@135b0430e856ade27175cbd1d4e1e11b0dd8ef95
31+ env :
32+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ START_DATE : ${{ env.START_DATE }}
34+ END_DATE : ${{ env.END_DATE }}
35+ REPOSITORY : github/issue-metrics
36+ SPONSOR_INFO : " true"
37+
38+ - name : Create issue
39+ uses : peter-evans/create-issue-from-file@24452a72d85239eacf1468b0f1982a9f3fec4c94
40+ with :
41+ title : Monthly contributor report
42+ token : ${{ secrets.GITHUB_TOKEN }}
43+ content-filepath : ./contributors.md
44+ assignees : zkoppert
0 commit comments