Skip to content

Create Monthly Report issue #13

Create Monthly Report issue

Create Monthly Report issue #13

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://www.canva.com/design/DAF9eaWedp8/AaJVpaWQGFB5JeLTXiErUQ/edit?utm_content=DAF9eaWedp8&utm_campaign=designshare&utm_medium=link2&utm_source=sharebutton)
## To-Do
- [ ] Update metrics for ${{steps.set_output.outputs.month}}
pinned: false
close-previous: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}