Skip to content

Commit

Permalink
Update update_submodule.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePat02 committed Jan 4, 2024
1 parent 6381051 commit 276a9c3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/update_submodule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout main branch
- name: Checkout code
uses: actions/checkout@v2
with:
ref: main

- name: Copy folder to submodule branch
- name: Copy specific folder to submodule branch
run: |
dir
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

0 comments on commit 276a9c3

Please sign in to comment.