diff --git a/.github/workflows/update-submodules.yml b/.github/workflows/update-submodules.yml new file mode 100644 index 0000000..e8fabeb --- /dev/null +++ b/.github/workflows/update-submodules.yml @@ -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 diff --git a/ACE-Step-DAW b/ACE-Step-DAW index da9c7e5..e8153b9 160000 --- a/ACE-Step-DAW +++ b/ACE-Step-DAW @@ -1 +1 @@ -Subproject commit da9c7e522ca8c70f2018a07a4584c0c83d3e35a0 +Subproject commit e8153b9df342bd237e189c9eb880df4ffcc28b56