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

Create GH Actions workflow for templating an event #114

Open
zenlex opened this issue Aug 24, 2022 · 0 comments
Open

Create GH Actions workflow for templating an event #114

zenlex opened this issue Aug 24, 2022 · 0 comments
Assignees
Labels
ci/cd infrastructure / automation

Comments

@zenlex
Copy link
Collaborator

zenlex commented Aug 24, 2022

This project pulls events from markdown files in the repository dynamically and merges them with events pulled from the Meetup API. New events can be created simply by merging markdown files where the path is /pages/events/{event-slug}/index.md. The action should be configured for manual triggering with these inputs:

  • title
  • date
  • author
  • location

The action should:

  • generate a url safe slug
  • checkout the current content/events branch
  • create an {event-title}.md file at /events
  • the index.md file should contain frontmatter in the following format:
---
- title: {user title from workflow trigger}
- author: {user author from workflow trigger}
- slug: {generated based on title}
- date: {user provided date as ISO-8601 string}
- location: {string}
- content-type: "blog | project | event" (each document will only be one type)
- publish: true | false
---
  • commit the changes and push to content/blog
  • generate pr from content/blog -> dev
  • bonus points if it redirects to the newly created markdown file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/cd infrastructure / automation
Projects
Status: Selected for Development
Development

No branches or pull requests

1 participant