Qiita - pull articles #32604
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: Qiita - pull articles | |
on: | |
schedule: | |
- cron: '*/20 * * * *' | |
push: | |
paths: | |
- '.github/workflows/qiita_pull_articles.yml' | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
pull_articles: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: main | |
- uses: actions/setup-node@v4 | |
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@v6 | |
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 | |
qiita |