Convert issues to markdowns #122
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Convert issues to markdowns" | |
on: | |
workflow_dispatch: | |
jobs: | |
convert_issues_to_markdown_job: | |
runs-on: ubuntu-latest | |
name: Convert issues to markdowns. | |
steps: | |
- name: checkout | |
uses: actions/checkout@v1 | |
- name: Fetch issues and generate markdowns | |
uses: skyfe79/hugo-with-github-issues@v1.7 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
repo: 'blog.contents' | |
owner: 'skyfe79' | |
skip-author: 'utterances-bot' | |
skip-pull-requests: 'true' | |
use-issue-seperator: 'false' | |
issue-state: 'all' | |
output: 'content/posts' | |
- name: Commit files | |
run: | | |
git config --local user.email "skyfe79@gmail.com" | |
git config --local user.name "sungcheol kim" | |
git add . | |
git commit -m "Add Posts" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |