Skip to content

Commit 6006d15

Browse files
committed
chore:run prettier
Signed-off-by: Zack Koppert <[email protected]>
1 parent 9e08a22 commit 6006d15

File tree

1 file changed

+33
-35
lines changed

1 file changed

+33
-35
lines changed

.github/workflows/contributors.yml

Lines changed: 33 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Monthly contributor reports
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '3 2 1 * *'
5+
- cron: "3 2 1 * *"
66

77
permissions:
88
issues: write
@@ -13,37 +13,35 @@ 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@v1
32-
env:
33-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34-
START_DATE: ${{ env.START_DATE }}
35-
END_DATE: ${{ env.END_DATE }}
36-
REPOSITORY: "github/go-spdx,github-community-projects/internal-contribution-forks,github/stale-repos,github/evergreen,github/issue-metrics,github/github-ospo,github/contributors,github/automatic-contrib-prs,github/cleanowners"
37-
SPONSOR_INFO: "true"
38-
LINK_TO_PROFILE: "true"
39-
40-
- name: Create GitHub Discussion
41-
uses: abirismyname/[email protected]
42-
env:
43-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44-
with:
45-
title: Thank you Contributors!
46-
body-filepath: ./contributors.md
47-
repository-id: R_kgDOJDwwMQ
48-
category-id: DIC_kwDOJDwwMc4CUmf8
49-
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@v1
31+
env:
32+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
START_DATE: ${{ env.START_DATE }}
34+
END_DATE: ${{ env.END_DATE }}
35+
REPOSITORY: "github/go-spdx,github-community-projects/internal-contribution-forks,github/stale-repos,github/evergreen,github/issue-metrics,github/github-ospo,github/contributors,github/automatic-contrib-prs,github/cleanowners"
36+
SPONSOR_INFO: "true"
37+
LINK_TO_PROFILE: "true"
38+
39+
- name: Create GitHub Discussion
40+
uses: abirismyname/[email protected]
41+
env:
42+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
with:
44+
title: Thank you Contributors!
45+
body-filepath: ./contributors.md
46+
repository-id: R_kgDOJDwwMQ
47+
category-id: DIC_kwDOJDwwMc4CUmf8

0 commit comments

Comments
 (0)