An experiment with Github Actions and HackMD.
It contains two reusable workflows:
- Create: Opens a PR with a rendered version of your meeting notes template and pushes a copy to your HackMD team.
- Sync: Updates the PR document with the latest contents in HackMD.
You will need to issue a HackMD team token and store it as a secret.
Check the inputs
and secrets
fields in the workflow_call
trigger for the Create and Sync
workflows for more details.
You need to create a workflow out of the two actions here: Create and Sync. In this example:
- The Create workflow is triggered manually via
workflow_dispatch
, but you could have it on a cronjob as well. - The Sync workflow is triggered by adding a label to the PR, but you could use a PR comment trigger with some authentication, if you want.
See .github/workflows/use-action.yml
for more details.
- Go to "Actions> Create PR for meeting notes" and run a
workflow_dispatch
job. - A PR will be created containing the link to the freshly created HackMD document.
- Edit the HackMD document as much as you want.
- When you are done, go back to the PR and add the
sync-hackmd-notes
label. - Merge!