-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (39 loc) · 1.16 KB
/
update-submodules.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
name: "Update submodules - monthly"
on:
schedule:
- cron: '0 10 10 * *'
jobs:
update:
name: Update submodules
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 20.x ]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run update-submodules
- name: Generate token
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6-rc
with:
token: ${{ steps.generate-token.outputs.token }}
delete-branch: true
commit-message: Update sub-modules
title: Update sub-modules
body: |
Update sub-modules