Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .github/workflows/update-submodules.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# Nightly job that bumps every git submodule to the latest upstream HEAD
# and opens (or updates) a PR so the change goes through normal review.
name: Update submodules

on:
schedule:
# 03:00 UTC every day
- cron: "0 3 * * *"
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
update:
name: Bump submodules to latest HEAD
runs-on: ubuntu-latest

steps:
- name: Checkout (no submodules)
uses: actions/checkout@v4
with:
submodules: false

- name: Update every submodule to remote HEAD
id: update
shell: bash
run: |
git submodule sync
git submodule update --init --remote --depth 1

if git diff --quiet HEAD; then
echo "changed=false" >> "$GITHUB_OUTPUT"
else
echo "changed=true" >> "$GITHUB_OUTPUT"
fi

- name: Push branch and open PR
if: steps.update.outputs.changed == 'true'
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: update submodules to latest HEAD"
branch: chore/update-submodules
delete-branch: true
title: "chore: update submodules to latest HEAD"
body: |
Automated nightly submodule update.

This PR was opened by the **Update submodules** workflow. It bumps
every registered git submodule to the latest commit on its remote
default branch.

Merge when CI passes.
labels: dependencies
2 changes: 1 addition & 1 deletion ACE-Step-DAW
Submodule ACE-Step-DAW updated 274 files
Loading