File tree 1 file changed +16
-1
lines changed
1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -19,16 +19,31 @@ jobs:
19
19
- name : Checkout repository
20
20
uses : actions/checkout@v4
21
21
22
+ - name : Get dates for last month
23
+ shell : bash
24
+ run : |
25
+ # Calculate the first day of the previous month
26
+ start_date=$(date -d "last month" +%Y-%m-01)
27
+
28
+ # Calculate the last day of the previous month
29
+ end_date=$(date -d "$start_date +1 month -1 day" +%Y-%m-%d)
30
+
31
+ #Set an environment variable with the date range
32
+ echo "START_DATE=$start_date" >> "$GITHUB_ENV"
33
+ echo "END_DATE=$end_date" >> "$GITHUB_ENV"
34
+
22
35
- name : Run contributor action
23
36
uses : github/contributors@v1
24
37
env :
25
38
GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
+ START_DATE : ${{ env.START_DATE }}
40
+ END_DATE : ${{ env.END_DATE }}
26
41
ORGANIZATION : BlackPythonDevs
27
42
SPONSOR_INFO : " true"
28
43
29
44
- name : Create issue
30
45
id : ciff
31
- uses : peter-evans/create-issue-from-file@v4
46
+ uses : peter-evans/create-issue-from-file@v5
32
47
with :
33
48
title : Monthly contributor report
34
49
token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments