Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
b9a761b9
Unverified
Commit
b9a761b9
authored
Feb 03, 2022
by
Frank Lee
Committed by
GitHub
Feb 03, 2022
Browse files
added github action to synchronize submodule commits automatically (#193)
parent
a2f15656
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
.github/workflows/submodule.yml
.github/workflows/submodule.yml
+44
-0
No files found.
.github/workflows/submodule.yml
0 → 100644
View file @
b9a761b9
name
:
Synchronize Submodule
on
:
workflow_dispatch
:
schedule
:
-
cron
:
"
0
0
*
*
*"
jobs
:
sync-submodule
:
runs-on
:
ubuntu-latest
if
:
github.repository == 'hpcaitech/ColossalAI'
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v2
with
:
submodules
:
true
-
name
:
echo
run
:
|
echo ${{github}}
-
name
:
Git Sumbodule Update
run
:
|
git pull --recurse-submodules
git submodule update --remote --recursive
-
name
:
Commit update
run
:
|
git config --global user.name 'github-actions'
git config --global user.email 'github-actions@github.com'
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git commit -am "Automated submodule synchronization"
-
name
:
Create Pull Request
uses
:
peter-evans/create-pull-request@v3
with
:
title
:
'
[Bot]
Synchronize
Submodule
References'
body
:
|
Automated PR to update submodule commits
committer
:
GitHub <noreply@github.com>
author
:
github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
assignees
:
${{ github.actor }}
delete-branch
:
true
branch
:
create-pull-request/patch-sync-submodule
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment