-
Notifications
You must be signed in to change notification settings - Fork 12
41 lines (34 loc) · 1.2 KB
/
Copy pathfetch-the-editor-upgrade.yml
File metadata and controls
41 lines (34 loc) · 1.2 KB
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
name: Pull the latest Editor and tools
on:
schedule:
# Run this workflow every hour
- cron: '0 * * * *'
jobs:
pull-packages:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js 15
uses: actions/setup-node@v1
with:
node-version: 15
- name: Make envfile with Hawk token
uses: ozaytsev86/create-env-file@v1
with:
file-name: './www/.env'
ENV_HAWK_TOKEN: ${{ secrets.HAWK_TOKEN }}
- name: Go to app dir, Install Node.js packages, Pull Editor's packages
run: cd www && yarn editor-upgrade && yarn build
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Upgrade Editor and Tools
committer: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
author: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
branch: pull-the-latest-editor-and-tools
delete-branch: true
title: "Upgrade Editor.js and Tools"
body: |
Auto-generated PR for pulling the latest Editor and Tools