-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1.01 KB
/
convert-issues.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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 }}