Add weekly GitHub Actions workflow to auto-update submodules via gh-powered PR#6
Open
Copilot wants to merge 17 commits into
Open
Add weekly GitHub Actions workflow to auto-update submodules via gh-powered PR#6Copilot wants to merge 17 commits into
Copilot wants to merge 17 commits into
Conversation
Agent-Logs-Url: https://github.com/enactic/dora-openarm-data-collection/sessions/e21144da-43c2-44cb-aa89-3265c406ab82 Co-authored-by: kou <27350+kou@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add GitHub Actions workflow to update submodules weekly
Add weekly GitHub Actions workflow to auto-update submodules via PR
May 14, 2026
kou
reviewed
May 14, 2026
Comment on lines
+42
to
+52
| uses: peter-evans/create-pull-request@v7 | ||
| with: | ||
| commit-message: "ci: update submodules" | ||
| title: "ci: update submodules" | ||
| body: | | ||
| ## Summary | ||
| - update git submodules to their latest upstream commits | ||
|
|
||
| This pull request was generated automatically. | ||
| branch: ci/update-submodules | ||
| delete-branch: true |
Contributor
There was a problem hiding this comment.
@copilot Use gh instead of peter-evans/create-pull-request GitHub Action.
Author
There was a problem hiding this comment.
Updated in 36ff4e3: the workflow now uses gh to create/update the submodule PR (removed peter-evans/create-pull-request).
Agent-Logs-Url: https://github.com/enactic/dora-openarm-data-collection/sessions/af636068-6b93-4d24-9f88-d2f8eac0721f Co-authored-by: kou <27350+kou@users.noreply.github.com>
Agent-Logs-Url: https://github.com/enactic/dora-openarm-data-collection/sessions/af636068-6b93-4d24-9f88-d2f8eac0721f Co-authored-by: kou <27350+kou@users.noreply.github.com>
Agent-Logs-Url: https://github.com/enactic/dora-openarm-data-collection/sessions/af636068-6b93-4d24-9f88-d2f8eac0721f Co-authored-by: kou <27350+kou@users.noreply.github.com>
Agent-Logs-Url: https://github.com/enactic/dora-openarm-data-collection/sessions/af636068-6b93-4d24-9f88-d2f8eac0721f Co-authored-by: kou <27350+kou@users.noreply.github.com>
Agent-Logs-Url: https://github.com/enactic/dora-openarm-data-collection/sessions/af636068-6b93-4d24-9f88-d2f8eac0721f Co-authored-by: kou <27350+kou@users.noreply.github.com>
Agent-Logs-Url: https://github.com/enactic/dora-openarm-data-collection/sessions/af636068-6b93-4d24-9f88-d2f8eac0721f Co-authored-by: kou <27350+kou@users.noreply.github.com>
Agent-Logs-Url: https://github.com/enactic/dora-openarm-data-collection/sessions/af636068-6b93-4d24-9f88-d2f8eac0721f Co-authored-by: kou <27350+kou@users.noreply.github.com>
Agent-Logs-Url: https://github.com/enactic/dora-openarm-data-collection/sessions/af636068-6b93-4d24-9f88-d2f8eac0721f Co-authored-by: kou <27350+kou@users.noreply.github.com>
Agent-Logs-Url: https://github.com/enactic/dora-openarm-data-collection/sessions/af636068-6b93-4d24-9f88-d2f8eac0721f Co-authored-by: kou <27350+kou@users.noreply.github.com>
Agent-Logs-Url: https://github.com/enactic/dora-openarm-data-collection/sessions/af636068-6b93-4d24-9f88-d2f8eac0721f Co-authored-by: kou <27350+kou@users.noreply.github.com>
Agent-Logs-Url: https://github.com/enactic/dora-openarm-data-collection/sessions/af636068-6b93-4d24-9f88-d2f8eac0721f Co-authored-by: kou <27350+kou@users.noreply.github.com>
Copilot
AI
changed the title
Add weekly GitHub Actions workflow to auto-update submodules via PR
Add weekly GitHub Actions workflow to auto-update submodules via gh-powered PR
May 14, 2026
kou
reviewed
May 14, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a GitHub Actions workflow to automate weekly/manual submodule refreshes and open or update a PR with the resulting submodule pointer changes.
Changes:
- Adds scheduled and manual workflow triggers for submodule updates.
- Updates submodules recursively and commits changes to
ci/update-submodules. - Uses
ghCLI to create or update the corresponding PR.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| with: |
Comment on lines
+62
to
+64
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: | |
Comment on lines
+26
to
+30
| jobs: | ||
| update-submodules: | ||
| name: Update submodules | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 |
kou
reviewed
May 14, 2026
Comment on lines
+17
to
+19
| on: | ||
| schedule: | ||
| - cron: '0 0 * * 1' |
Comment on lines
+62
to
+64
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| set -euo pipefail |
kou
reviewed
May 14, 2026
Author
There was a problem hiding this comment.
Updated in cb9c01d: added shell: bash to the Create or update pull request step.
Agent-Logs-Url: https://github.com/enactic/dora-openarm-data-collection/sessions/aee3f6e1-8fe2-4ede-906d-480dfaf00625 Co-authored-by: kou <27350+kou@users.noreply.github.com>
kou
reviewed
May 14, 2026
| if: steps.commit.outputs.has_changes == 'true' | ||
| shell: bash | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} |
| fi | ||
|
|
||
| pr_list="" | ||
| if ! pr_list="$(gh pr list --head ci/update-submodules --base "$base_branch" --state open --json number --jq '.[].number')"; then |
|
|
||
| on: | ||
| schedule: | ||
| - cron: '0 0 * * 1' |
Comment on lines
+51
to
+55
| git checkout -B ci/update-submodules | ||
| git add .gitmodules | ||
| git submodule foreach --recursive 'git -C "$toplevel" add "$sm_path"' | ||
| git commit -m "ci: update submodules" | ||
| git push --force origin ci/update-submodules |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds automation for submodule maintenance so updates no longer require manual sync. A scheduled workflow now updates submodule refs and raises a pull request only when changes exist.
New workflow: weekly submodule update
.github/workflows/update-submodules.yamlschedule(weekly, Monday 00:00 UTC)Submodule refresh logic
HEADand commits only when updates exist.Automated PR creation
ghCLI (withGH_TOKEN) instead ofpeter-evans/create-pull-request.ci/update-submodules.shell: bash.