Skip to content

Commit

Permalink
Merge pull request #190 from mziyut/setup-blog-workflow
Browse files Browse the repository at this point in the history
Setup blog workflow
  • Loading branch information
mziyut authored Feb 6, 2024
2 parents 6c11856 + 7bea7f7 commit ce321eb
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/blog_pull_articles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Blog - pull articles

on:
schedule:
- cron: '*/20 * * * *'
push:
paths:
- '.github/workflows/blog_pull_articles.yml'
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
pull_articles:
uses: hatena/hatenablog-workflows/.github/workflows/pull.yaml@v1
with:
BLOG_DOMAIN: ${{ vars.BLOG_DOMAIN }}
secrets:
OWNER_API_KEY: ${{ secrets.OWNER_API_KEY }}
Empty file added blog/entry/.gitkeep
Empty file.
3 changes: 3 additions & 0 deletions blogsync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mziyut.hatenadiary.com:
username: mziyut112
local_root: blog/entry

0 comments on commit ce321eb

Please sign in to comment.