-
Notifications
You must be signed in to change notification settings - Fork 504
chore: Create submodule CI check #5582
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 3 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
08014d7
Create submodule.yml
jessiemongeon1 ed5e332
Update submodule.yml
jessiemongeon1 eeedb77
Update submodule.yml
jessiemongeon1 338b951
Update submodule.yml
jessiemongeon1 8e90e6b
Update submodule.yml
jessiemongeon1 0c99efa
Merge branch 'master' into add-submodule-ci
jessiemongeon1 a249866
Update and rename submodule.yml to check_submodule.yml
jessiemongeon1 9373331
Update CODEOWNERS
jessiemongeon1 b12de3a
Update check_submodule.yml
jessiemongeon1 1baa6e9
Update .github/workflows/check_submodule.yml
jessiemongeon1 911f818
fix motoko sub version
06cab70
fix sdk sub version
68e117c
fix sub versions
fe339de
Update check_submodule.yml
jessiemongeon1 ae535e3
fix subs
b869dce
Merge branch 'add-submodule-ci' of github.com:dfinity/portal into add…
254b294
Merge branch 'master' into add-submodule-ci
f48576d
resolve
eb73274
Update MOTOKO_MAINTENANCE.md
jessiemongeon1 04436bd
Update README.md
jessiemongeon1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: 'Update submodules' | ||
|
||
on: | ||
workflow_dispatch: | ||
# run every 72 hours (every 3 days) | ||
schedule: | ||
- cron: "0 0 */3 * *" # This runs at midnight UTC every 3rd day | ||
|
||
jobs: | ||
createPullRequest: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Git identity | ||
run: | | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "GitHub Actions" | ||
|
||
- name: Update submodules to latest commit | ||
run: git submodule update --remote --force | ||
|
||
- name: Commit changes | ||
run: | | ||
git add . | ||
git commit -m "Automated submodule update" | ||
git push origin HEAD:automated-submodule-update | ||
|
||
- name: Create Pull Request using peter-evans/create-pull-request | ||
uses: peter-evans/create-pull-request@v3 | ||
jessiemongeon1 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: "Automated submodule update" | ||
committer: GitHub <[email protected]> | ||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com> | ||
signoff: false | ||
branch: automated-submodule-update | ||
delete-branch: true | ||
title: '[Automated] Submodule update' | ||
body: | | ||
Submodule update | ||
- Auto-generated by [create-pull-request][1] | ||
reviewers: | | ||
editorial | ||
draft: false |
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.
Uh oh!
There was an error while loading. Please reload this page.