Skip to content

This GitHub Action will allow you to set variables in Markdown and allow you to interpolate throughout your file.

License

Notifications You must be signed in to change notification settings

bdougie/variables-in-markdown

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Variables in Markdown

This GitHub Action will allow you to set variables in Markdown and interpolate throughout your GitHub Issue.

Usage

This GitHub Action that replaces template in your variables

on: issues
name: Template Variables in Markdown
jobs:
  markdown:
    name: markdown-marker
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - uses: bdougie/variables-in-markdown@master
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Testing

This action is best used with issue templates. Create an example .github/ISSUE_TEMPLATE.md file. This file should have front matter to help construct the new issue:

---
title: New Issue
labels: bug, enhancement
---
<!--#
NOUN=mother
ATTRIBUTION=Mark Wahlberg
$-->

"Say hi to your {{ NOUN }} for me," {{ ATTRIBUTION }}

You'll notice that the above example has some {{ MUSTACHE }} variables. This is needed for the API to find and replace variables. This is powered by the marky_markdown ruby gem.

About

This GitHub Action will allow you to set variables in Markdown and allow you to interpolate throughout your file.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published