get zenn articles #671
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: get zenn articles | |
on: | |
schedule: | |
# 毎日12時に実行 | |
- cron: '0 3 * * *' | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
build: | |
name: get articles | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- run: npm install | |
- name: build posts | |
run: | | |
npm run build:posts | |
- uses: peter-evans/create-pull-request@v4 | |
with: | |
commit-message: build zenn posts | |
delete-branch: false | |
title: Update zenn posts file | |
reviewers: fujiyamaorange |