Skip to content

Commit

Permalink
Setup blog workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mziyut committed Feb 6, 2024
1 parent 6c11856 commit 7bea7f7
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 7bea7f7

Please sign in to comment.