Skip to content

Daily Submodule Update #27

Daily Submodule Update

Daily Submodule Update #27

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