Skip to content

Commit 20d68e8

Browse files
committed
add weekly PR
1 parent bb9f4d0 commit 20d68e8

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Weekly Pull Requests
2+
3+
on:
4+
schedule:
5+
# https://crontab.guru/once-a-week
6+
- cron: "0 0 * * 0"
7+
8+
jobs:
9+
weekly_pull_requests:
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
actions:
14+
-
15+
name: "Re-Generate Nodes Documentation"
16+
run: "bin/console dump-nodes --output-file docs/nodes_overview.md --ansi"
17+
branch: 'automated-regenerate-node-documentation'
18+
19+
name: ${{ matrix.actions.name }}
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
-
24+
uses: actions/checkout@v2
25+
with:
26+
token: ${{ secrets.ACCESS_TOKEN }}
27+
28+
-
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: 8.0
32+
coverage: none
33+
34+
-
35+
run: composer install --no-progress --ansi
36+
37+
-
38+
run: ${{ matrix.actions.run }}
39+
40+
# see https://github.com/peter-evans/create-pull-request
41+
-
42+
name: Create pull-request
43+
uses: peter-evans/create-pull-request@v3
44+
with:
45+
token: ${{ secrets.GITHUB_TOKEN }}
46+
commit-message: "[automated] ${{ matrix.actions.name }}"
47+
base: 'master'
48+
branch: ${{ matrix.actions.branch }}
49+
title: '[automated] ${{ matrix.actions.name }}'
50+
delete-branch: true
51+
author: "kaizen-ci <info@kaizen-ci.org>"

0 commit comments

Comments
 (0)