Daily Submodule Update #31
This file contains hidden or 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: Daily Submodule Update | |
| on: | |
| schedule: | |
| # 매일 한국 시간 자정 (UTC 15:00) | |
| - cron: '0 15 * * *' | |
| workflow_dispatch: # Actions 탭에서 수동 실행 가능 | |
| jobs: | |
| update-submodules: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Update submodules to latest | |
| run: git submodule update --remote | |
| - name: Commit and push if changed | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add . | |
| git diff-index --quiet HEAD || git commit -m "chore: auto-update submodules to latest" | |
| git push origin develop |