Skip to content

Update submodules - monthly #25

Update submodules - monthly

Update submodules - monthly #25

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