-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.1 KB
/
devto_pull_articles.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Dev.to - pull articles
on:
schedule:
- cron: '*/20 * * * *'
push:
paths:
- '.github/workflows/devto_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 devto run dev init -p
env:
DEVTO_TOKEN: ${{ secrets.DEVTO_TOKEN }}
DEVTO_REPO: mziyut/articles
- run: yarn workspace devto 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-devto
add-paths: |
devto/posts/*
labels: |
articles
devto