misc #3
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: Update Submodule | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
update-submodule: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Copy specific folder to submodule branch | |
run: | | |
git checkout submodule | |
git rm -r --cached . | |
git checkout main -- addons/behaviour_toolkit | |
mv addons/behaviour_toolkit* . | |
git add . | |
git commit -m "Update submodule with changes from main" | |
git push origin submodule |