Skip to content

Update submodules #1022

Update submodules

Update submodules #1022

Workflow file for this run

name: Update submodules
on:
workflow_dispatch:
schedule:
# Run every day
- cron: '0 3 * * *'
jobs:
submodule:
runs-on: ubuntu-latest
steps:
- name: Clone project
uses: actions/checkout@v4
with:
submodules: true
- name: Update submodules
run: |
set -ex
git submodule update --remote
- name: Commit/push if changed
run: |
set -ex
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git diff --quiet --exit-code && exit
git commit -a -m 'Update submodules'
git push
workflow-keepalive:
if: github.event_name == 'schedule'
runs-on: ubuntu-latest
permissions:
actions: write
steps:
- uses: liskin/gh-workflow-keepalive@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}