Relax Submodule Sync #33
This file contains 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
name: 'Relax Submodule Sync' | |
on: | |
workflow_dispatch: | |
jobs: | |
sync: | |
name: 'Relax Submodule Sync' | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Git Sumbodule Update | |
run: | | |
git submodule update --remote 3rdparty/tvm | |
- name: Commit update | |
env: | |
GITHUB_TOKEN: ${{ secrets.MLC_GITHUB_TOKEN }} | |
run: | | |
git config --global user.name 'Git bot' | |
git config --global user.email 'bot@noreply.github.com' | |
git remote set-url origin https://$GITHUB_TOKEN@github.com/mlc-ai/mlc-llm | |
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit" |