-
-
Notifications
You must be signed in to change notification settings - Fork 275
46 lines (42 loc) · 1.61 KB
/
meeting-notes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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@caec6b839f3dc5f8a534520e32100622325d752e # @main
with:
date: ${{ inputs.date || 'now' }}
template_path: misc/DEV_MEETING_TEMPLATE.md
output_path: community/minutes/%Y-%m-%d.md
hackmd_team: conda-forge
force_push: true
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@caec6b839f3dc5f8a534520e32100622325d752e # pin@main
with:
pr_number: ${{ github.event.number }}
secrets:
HACKMD_TOKEN: ${{ secrets.HACKMD_TOKEN }}