Skip to content

Commit 712628a

Browse files
authored
Update GH action to publish monthly issue metrics (#6654)
* Update issue-metrics.yml
1 parent 8239132 commit 712628a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/issue-metrics.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,20 +28,20 @@ jobs:
2828
shell: bash
2929
run: |
3030
# Calculate the first day of the previous month
31-
first_day=${{ inputs.report_date_start }}
31+
first_day=${{ inputs.report_date_start }} >> "$GITHUB_ENV"
3232
3333
# Calculate the last day of the previous month
34-
last_day=${{ inputs.report_date_end }}
34+
last_day=${{ inputs.report_date_end }} >> "$GITHUB_ENV"
3535
3636
- name: Run issue-metrics tool
3737
uses: github/issue-metrics@v2
3838
env:
3939
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
SEARCH_QUERY: 'repo:awsdocs/aws-doc-sdk-examples is:issue created:${{ env.last_month }} -reason:"not planned"'
40+
SEARCH_QUERY: 'repo:awsdocs/aws-doc-sdk-examples created:${{ env.first_day }}..${{ env.last_day }}'
4141

4242
- name: Create issue
4343
uses: peter-evans/create-issue-from-file@v5
4444
with:
45-
title: Monthly issue metrics report ${{ env.last_month }}
45+
title: Monthly issue metrics report ${{ env.first_day }} to ${{ env.last_day }}
4646
token: ${{ secrets.GITHUB_TOKEN }}
4747
content-filepath: ./issue_metrics.md

0 commit comments

Comments
 (0)