Skip to content

InfraWay/get-markdown-meta-action

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

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

get-markdown-meta-action

Github Action for extracting metadata from markdown file

Inputs

markdown_file

Required The markdown file path of the article.

base_url

Base blog's url e.g. https://myblog.com

Outputs

title

Title of the post

Example usage

Let's assume the post markdown file's path is ./content/post.md.

name: tweet-from-markdown
on: [push]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Read post's meta
        id: meta
        uses: infraway/get-markdown-meta-action@v1
        with:
          markdown_file: ./content/post.md
      - uses: infraway/tweet-action@v1
        with:
          status: Check out new article ${{ steps.meta.outputs.title }} - ${{ steps.meta.outputs.url }}