On this page
Submodule 부모 리포지토리 push
On this page
Submodule 부모 리포지토리 push
자식 서브모듈 리포지토리를 push
했을 때 부모 리포지토리 pull
당겨서 push
하는 깃허브 액션 스크립트 예제
name: <이름>on:workflow_dispatch:push:branches:- mainjobs:build:runs-on: ubuntu-lateststeps:- uses: actions/checkout@v2with:repository: ${{ github.repository_owner }}/<리포지토리 주소>fetch-depth: 0token: ${{secrets.PAT}}submodules: true- run: |git config user.name ${{ github.actor }}git config user.email ${{ github.actor }}@users.noreplay.github.comgit submodule foreach git pull origin maingit add <submodule 이름>git commit -m "<커밋메세지>"git push