Skip to content

Sep0lkit/git-issues-blog

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

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Git-Issues-Blog (Github-Action)

GitHub Marketplace

A Github action to create issues from github repository.

I use this action for my blog system, make me more focused on writing.

Features:

  • WYWIWYG(What You Write Is What You Get)
  • Based on github file content
  • Automatically generate and update issues
  • Template support
  • Automatic conversion image link
  • Easy to using

Example:

Issues: Thanks-for-using.md

Usage:

name: git issues blog workflow

on: 
  push:
    branches:
      - master
    paths:
      - 'posts/*.md'
      - 'posts/*/*.md'
      - 'posts/*/*/*.md'


jobs:
  git-issues-blog:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
      with:
        ref: master
    - name: Git-Issues-Blog
      uses: Sep0lkit/git-issues-blog@v1.3
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        POSTS_PATH: 'posts'
      

Environment variables

  • POSTS_PATH - blog posts folder name, default is "posts"

Issues templates

"_tpl/post-header.md" and "_tpl/post-footer.md" for templates, issues content will be:

Issues = post-header.md + posts/example.md + post-footer.md

tpl variables support:

{{ GITHUB_POSTS_USER }} #github repository username

{{ GITHUB_POSTS_URL }} #posts url in file but not issues.

Something to do:

  • Posts by github user, but not github-action(github actions doesn't support now).