Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/meeting-issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Automatic Meeting Issues

# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
schedule:
# This will run at 8:30am on the first day of every month. To adjust, go to https://crontab.guru/
- cron: "30 8 1 * *"

jobs:
create_issue:
name: Create Meeting issues for this month
runs-on: ubuntu-latest
strategy:
matrix:
# Loop over Wednesday of a month
wednesday: [1, 2, 3, 4, 5]
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: |
pip install python-dateutil

- name: Generate target date
id: target-date
run: |
echo "date=$(.github/wednesday.py ${{ matrix.wednesday }})" >> "$GITHUB_OUTPUT"

- name: Create issue for meeting this week
# The next line skips the issue creation step if there is no Wednesday, i.e. only four Wednesdays in a month
if: ${{ steps.target-date.outputs.date != '' }}
id: create-innovation
uses: JasonEtco/create-an-issue@v2
with:
filename: .github/weekly-meeting.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DATE: ${{ steps.target-date.outputs.date }}