Update Submodules (Daily 9AM KST) #69
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: Update Submodules (Daily 9AM KST) | |
| permissions: | |
| contents: write | |
| on: | |
| schedule: | |
| - cron: '0 0 * * *' # λ§€μΌ μ€μ 9μ (νκ΅μκ° κΈ°μ€) | |
| workflow_dispatch: # μλ μ€νλ κ°λ₯ | |
| jobs: | |
| update-submodules: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout main repository | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Configure Git identity | |
| run: | | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| - name: Update submodules | |
| run: | | |
| git submodule foreach 'git checkout main && git pull origin main' | |
| git submodule update --remote --merge | |
| git add . | |
| git commit -m "π Auto-update submodules to latest main branches" || echo "No changes" | |
| git push |