-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 1.14 KB
/
update-templates.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: Migrate Templates
on:
schedule:
- cron: '0 12 * * 1'
jobs:
update-template:
name: Migrate templates and text sets
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Read .nvmrc
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
id: nvm
- name: Setup Node
uses: actions/[email protected]
with:
node-version: ${{ steps.nvm.outputs.NVMRC }}
cache: npm
- name: Install dependencies
run: npm ci
env:
CI: true
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
- name: Update story data (templates, text sets, FTUE)
run: npm run workflow:migrate
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Migrate templates and text sets to latest version
title: Migrate templates and text sets
body: Update templates and text sets after running through migration
branch: update/templates
labels: Dependencies