ad-m / github-push-action

GitHub actions to push back to repository eg. updated code
MIT License
1.21k stars 229 forks source link

support push submodule #152

Closed dimaslanjaka closed 10 months ago

dimaslanjaka commented 1 year ago

can this action push submodules too ?

ZPascal commented 1 year ago

@dimaslanjaka Do you mean to update the corresponding used version of the submodule inside the mean repository, or something like the git push --recurse-submodules=on-demand command?

dimaslanjaka commented 1 year ago

yes.

ive used https://github.com/JamesIves/github-pages-deploy-action with command

- run: git submodule foreach "git add -A | :"
- run: git submodule foreach "git commit -m \"message\" | :"
- name: Deploy 🚀
        uses: JamesIves/github-pages-deploy-action@v4
        with:
          folder: .

push successful but, submodules not pushed to remote. when i pull got error "commit hash not in our refs".

So, is ad-m/github-push-action can do that ?

ZPascal commented 1 year ago

@dimaslanjaka Not yet, but I can prepare the corresponding PR inside the next few days.

dimaslanjaka commented 1 year ago

thank you 👍