forked from DestinyItemManager/d2-additional-info
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (48 loc) · 1.48 KB
/
submodule-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
name: Update submodules
on:
workflow_dispatch:
schedule:
- cron: '0 18 * * *'
jobs:
update_submodules:
name: Update submodules
runs-on: ubuntu-latest
steps:
- name: Checkout D2AI
uses: actions/checkout@v4
with:
submodules: recursive
- uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: pnpm
- name: Update submodules
run: git submodule update --remote --recursive
- name: porcelain check
uses: dorny/paths-filter@v3
id: data
with:
base: HEAD
filters: |
changed:
- '**'
- name: pnpm generate-font
if: steps.data.outputs.changed == 'true'
run: |
pnpm install --frozen-lockfile --prefer-offline
pnpm generate-font
- name: Create Pull Request
if: steps.data.outputs.changed == 'true'
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PAT }}
commit-message: submodule update
committer: D2AI Bot <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: 'submodule update: generate-font'
body: |
Submodule Update
generate-font
branch: submodule-update-v${{ github.event.client_payload.config.env.MANIFEST_VERSION }}