Skip to content

Commit d4ff051

Browse files
committed
docs: align workflow examples with OUTPUT_FILENAME
Use a job-level OUTPUT_FILENAME and reference it in content-filepath so examples stay in sync. Signed-off-by: Venu Vardhan Reddy Tekula <venuvrtekula@gmail.com>
1 parent 430b20e commit d4ff051

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ jobs:
119119
runs-on: ubuntu-latest
120120
permissions:
121121
issues: write
122+
env:
123+
OUTPUT_FILENAME: contributors.md
122124

123125
steps:
124126
- name: Get dates for last month
@@ -148,7 +150,7 @@ jobs:
148150
with:
149151
title: Monthly contributor report
150152
token: ${{ secrets.GITHUB_TOKEN }}
151-
content-filepath: ./contributors.md
153+
content-filepath: ./${{ env.OUTPUT_FILENAME }}
152154
assignees: <YOUR_GITHUB_HANDLE_HERE>
153155
```
154156
@@ -170,6 +172,8 @@ jobs:
170172
runs-on: ubuntu-latest
171173
permissions:
172174
issues: write
175+
env:
176+
OUTPUT_FILENAME: contributors.md
173177

174178
steps:
175179
- name: Get dates for last month
@@ -204,7 +208,7 @@ jobs:
204208
with:
205209
title: Monthly contributor report
206210
token: ${{ secrets.GITHUB_TOKEN }}
207-
content-filepath: ./contributors.md
211+
content-filepath: ./${{ env.OUTPUT_FILENAME }}
208212
assignees: <YOUR_GITHUB_HANDLE_HERE>
209213
```
210214

env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def get_env_vars(
103103
token (str): The GitHub token to use for authentication
104104
ghe (str): The GitHub Enterprise URL to use for authentication
105105
start_date (str): The start date to get contributor information from
106-
end_date (str): The end date to get contributor information to.
106+
end_date (str): The end date to get contributor information to
107107
sponsor_info (str): Whether to get sponsor information on the contributor
108108
link_to_profile (str): Whether to link username to Github profile in markdown output
109109
output_filename (str): The output filename for the markdown report

0 commit comments

Comments
 (0)