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

Define frontmatter in expression syntax #9

Open
1 task
Brend-Smits opened this issue Nov 2, 2021 · 1 comment
Open
1 task

Define frontmatter in expression syntax #9

Brend-Smits opened this issue Nov 2, 2021 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Brend-Smits
Copy link
Member

Frontmatter should not be by convention, but should be allowed to be custom defined. This allows maximum flexibility.
Take the following scenario:

  • User wants to cross-post to Medium using our action, but also wants to post to their own blog which uses Gatsby(Gatsby has their own Frontmatter).

It would be great if the user could define their own frontmatter to not have to define multiple different ones for each action.
Example:

        name: Create Medium Post
        uses: philips-software/[email protected]
        with:
           integration_token: "${{ secrets.INTEGRATION_TOKEN }}"
           file: ${{ steps.changed-files.outputs.added_files }}
           content_format: "markdown"
           notify_followers: "false"
           publication_name: "#!#fm.publication_name"
           tags: "#!#fm.categories"
           title: "#!#fm.title"

#!# syntax is placeholder, and is subject to change.
https://github.com/philips-labs/tabia#filter uses such an approach using a Golang library to define filters. Implementation link: https://github.com/philips-labs/tabia/blob/c6b5005250d791ec2a64ae7f824692ffc6f208f6/lib/github/filter.go

To do:

  • Search for equivalent expression NuGet package.
@Brend-Smits Brend-Smits added the enhancement New feature or request label Nov 2, 2021
@Brend-Smits Brend-Smits added the help wanted Extra attention is needed label Jul 28, 2022
@Brend-Smits
Copy link
Member Author

This will also resolve #20.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant