Skip to content

Generate attendance reports #1

Generate attendance reports

Generate attendance reports #1

name: Generate attendance reports
on:
workflow_dispatch:
inputs:
year:
description: 'Year to regenerate (blank regenerates every year)'
required: false
type: string
default: ''
permissions:
contents: write
pull-requests: write
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: Checkout the governance repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Install zsh
run: |
sudo apt-get update
sudo apt-get install --no-install-recommends -y zsh
- name: Generate attendees.md
env:
YEAR: ${{ inputs.year }}
run: ./scripts/generate-attendees.zsh ${YEAR:+"$YEAR"}
- name: Create pull request
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
with:
branch: attendance/regenerate
add-paths: tac/meeting-minutes/*/attendees.md
commit-message: 'Regenerate TAC meeting attendance reports'
title: 'Regenerate TAC meeting attendance reports'
body: |
Regenerated by the [Generate attendance reports workflow](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
from `scripts/generate-attendees.zsh`.
Scope: ${{ inputs.year || 'all years' }}
These files are generated. Rerun the workflow rather than editing them by hand.
delete-branch: true