You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-3Lines changed: 8 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,7 @@ This action can be configured to authenticate with GitHub App Installation or Pe
94
94
|`END_DATE`| False | Current Date | The date at which you want to stop gathering contributor information. Must be later than the `START_DATE`. ie. Aug 2nd, 2023 would be `2023-08-02`|
95
95
|`SPONSOR_INFO`| False | False | If you want to include sponsor information in the output. This will include the sponsor count and the sponsor URL. This will impact action performance. ie. SPONSOR_INFO = "False" or SPONSOR_INFO = "True" |
96
96
|`LINK_TO_PROFILE`| False | True | If you want to link usernames to their GitHub profiles in the output. ie. LINK_TO_PROFILE = "True" or LINK_TO_PROFILE = "False" |
97
+
|`OUTPUT_FILENAME`| False | contributors.md | The output filename for the markdown report. ie. OUTPUT_FILENAME = "my-report.md" |
97
98
98
99
**Note**: If `start_date` and `end_date` are specified then the action will determine if the contributor is new. A new contributor is one that has contributed in the date range specified but not before the start date.
99
100
@@ -119,6 +120,8 @@ jobs:
119
120
runs-on: ubuntu-latest
120
121
permissions:
121
122
issues: write
123
+
env:
124
+
OUTPUT_FILENAME: contributors.md
122
125
123
126
steps:
124
127
- name: Get dates for last month
@@ -148,7 +151,7 @@ jobs:
148
151
with:
149
152
title: Monthly contributor report
150
153
token: ${{ secrets.GITHUB_TOKEN }}
151
-
content-filepath: ./contributors.md
154
+
content-filepath: ./${{ env.OUTPUT_FILENAME }}
152
155
assignees: <YOUR_GITHUB_HANDLE_HERE>
153
156
```
154
157
@@ -170,6 +173,8 @@ jobs:
170
173
runs-on: ubuntu-latest
171
174
permissions:
172
175
issues: write
176
+
env:
177
+
OUTPUT_FILENAME: contributors.md
173
178
174
179
steps:
175
180
- name: Get dates for last month
@@ -204,7 +209,7 @@ jobs:
204
209
with:
205
210
title: Monthly contributor report
206
211
token: ${{ secrets.GITHUB_TOKEN }}
207
-
content-filepath: ./contributors.md
212
+
content-filepath: ./${{ env.OUTPUT_FILENAME }}
208
213
assignees: <YOUR_GITHUB_HANDLE_HERE>
209
214
```
210
215
@@ -245,7 +250,7 @@ jobs:
245
250
246
251
When running as a GitHub Action, the contributors report is automatically displayed in the [GitHub Actions Job Summary](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary). This provides immediate visibility of the results directly in the workflow run interface without needing to check separate files or issues.
247
252
248
-
The job summary contains the same markdown content that is written to the `contributors.md` file, making it easy to view contributor information right in the GitHub Actions UI.
253
+
The job summary contains the same markdown content that is written to the configured output file (`contributors.md` by default), making it easy to view contributor information right in the GitHub Actions UI.
0 commit comments