forked from VanOns/laraberg
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (46 loc) · 1.32 KB
/
upgrade-gutenberg.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
45
46
47
48
name: Upgrade Gutenberg
on:
push:
branches:
- 'updates'
workflow_dispatch: { }
# workflow_dispatch:
# schedule:
# - cron: "0 * * * *"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['14']
steps:
- name: Git Checkout Gutenberg
run: |
git clone "$GITHUB_SERVER_URL/WordPress/gutenberg" gutenberg
cd gutenberg
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: 'gutenberg'
- run: npm --prefix './gutenberg' ci
- run: npm --prefix './gutenberg' run build
- run: npm --prefix './gutenberg' link
- name: Git Checkout
run: |
git clone "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" laraberg
cd laraberg
git checkout -f "$GITHUB_SHA"
- run: npm --prefix './laraberg' install
- run: npm --prefix './laraberg' link gutenberg
- run: npm --prefix './laraberg' run build
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-gutenberg
commit-message: Upgrade Gutenberg
title: Upgrade Gutenberg
path: laraberg
base: updates