From af236382a45d69b571cc56839718755a4b9839be Mon Sep 17 00:00:00 2001 From: Arielle-Bennett <74651964+Arielle-Bennett@users.noreply.github.com> Date: Fri, 8 Aug 2025 14:57:16 +0100 Subject: [PATCH] Create meeting-issues.yml --- .github/workflows/meeting-issues.yml | 41 ++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/meeting-issues.yml diff --git a/.github/workflows/meeting-issues.yml b/.github/workflows/meeting-issues.yml new file mode 100644 index 0000000..72c3438 --- /dev/null +++ b/.github/workflows/meeting-issues.yml @@ -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 }}