Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add meeting notes action #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
45 changes: 45 additions & 0 deletions .github/workflows/meeting-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Create PR for meeting notes

on:
workflow_dispatch:
inputs:
date:
description: |
Date of the meeting notes. MUST be understood by `date --date`.
Common examples are "now", "tomorrow", "next Wednesday", "2023-03-01"...
See https://www.gnu.org/software/coreutils/manual/html_node/Date-input-formats.html for full details.
required: false
default: "now"
type: string
pull_request:
types:
- labeled

permissions:
contents: write
pull-requests: write
# You need to enable 'Allow GitHub Actions to create and approve pull requests'
# in your Actions Settings too

jobs:
create:
if: github.event_name != 'pull_request'
uses: Quansight-Labs/hackmd-meeting-notes-action/.github/workflows/create-meeting-notes-pr.yml@main
with:
date: ${{ inputs.date || 'now' }}
template_path: meeting-notes/TEMPLATE.md
output_path: meeting-notes/%Y-%m-%d.md
hackmd_team: czi-eoss-5-conda-forge-grant
pr_body: |
New meeting notes available at ${env.hackmd_doc_url}.

Once done with the meeting, sync the note back to the repository by adding the `sync-hackmd-notes` label.
secrets:
HACKMD_TOKEN: ${{ secrets.HACKMD_TOKEN }}
sync:
if: github.event.label.name == 'sync-hackmd-notes'
uses: Quansight-Labs/hackmd-meeting-notes-action/.github/workflows/sync-meeting-notes-pr.yml@main
with:
pr_number: ${{ github.event.number }}
secrets:
HACKMD_TOKEN: ${{ secrets.HACKMD_TOKEN }}
3 changes: 1 addition & 2 deletions meeting-notes/TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
tags:
- meeting-notes
---
# 2023-MM-DD CZI EOSS 5 conda-forge grant meeting
# {{ date.strftime("%Y-%m-%d") }} CZI EOSS 5 conda-forge grant meeting

## 👥 Attendees

Expand Down Expand Up @@ -31,4 +31,3 @@ X attendees in total
- [ ] .
- [ ] .
- [ ] .
- [ ]