Skip to content

Commit

Permalink
Merge pull request #74 from mziyut/create-qiita-pull-workflow
Browse files Browse the repository at this point in the history
Setup qiita article workflow
  • Loading branch information
mziyut authored Jul 20, 2023
2 parents f635625 + 6feb071 commit 46183a6
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/qiita_pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Qiita - pull articles

on:
schedule:
- cron: '0 21 * * *'
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
pull_articles:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
with:
ref: master
- uses: actions/setup-node@v3
with:
cache: 'yarn'
- run: yarn install
- run: yarn workspace qiita pull:force
env:
QIITA_TOKEN: ${{ secrets.QIITA_TOKEN }}
- run: yarn workspace qiita format:fix
- uses: peter-evans/create-pull-request@v5
with:
commit-message: Pull articles
delete-branch: true
title: Pull articles
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
reviewers: mziyut
branch: create-pull-request/patch-pull-articles
add-paths: |
qiita/public/*
labels: |
articles
2 changes: 2 additions & 0 deletions qiita/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"preview": "qiita preview",
"publish": "qiita publish",
"publish:all": "qiita publish --all",
"pull": "qiita pull",
"pull:force": "qiita pull --force",
"format": "run-s prettier textlint",
"format:fix": "run-s prettier:fix textlint:fix",
"prettier": "prettier --check .",
Expand Down

0 comments on commit 46183a6

Please sign in to comment.