-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (31 loc) · 1.11 KB
/
monthly-report-issue.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Create Monthly Report issue
on:
workflow_dispatch:
schedule:
# 16:16 UTC on the 2nd of every month
- cron: 16 16 2 * *
jobs:
create-monthly-report-issue:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
# Get last month's name as a variable
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter
- id: set_output
run: |
echo "month=$(date -d 'last month' +%B)" >> $GITHUB_OUTPUT
- id: create_issue
uses: imjohnbo/issue-bot@v3
with:
assignees: AnthonyRollins
labels: reporting
title: Customer Success ${{steps.set_output.outputs.month}} Monthly Report
body: |
[${{steps.set_output.outputs.month}} Report](https://docs.google.com/presentation/d/1lhhYUdt4KoLNO6TzuSN-lWwv3sgOBMoc_drhXgCChGY/copy)
## To-Do
- [ ] Update metrics for ${{steps.set_output.outputs.month}}
pinned: false
close-previous: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}