-
Notifications
You must be signed in to change notification settings - Fork 56
57 lines (48 loc) · 1.38 KB
/
scripts-update.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
49
50
51
52
53
54
55
56
57
name: Update Embedded Resources
on:
schedule:
- cron: '41 16 * * *'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update:
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
cache: 'yarn'
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Update static
run: |
yarn scripts:update
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'chore: update generated assets [skip ci]'
title: 'chore: update generated assets [skip ci]'
body: |
This is an auto-generated PR with updated static assets.
branch: scripts/update
delete-branch: true
base: dev
labels: |
scripts/update
assignees: |
GalvinGao
reviewers: |
GalvinGao
- name: Print Pull Request URL
run: echo "Created Pull Request at ${{ steps.cpr.outputs.pull-request-url }}"