Update Submodule #77
This file contains 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
# submodule update workflow | |
name: Update Submodule | |
on: | |
schedule: | |
- cron: '10 0 * * *' # 영국시간으로 매일 0시 5분에 실행 | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Configure git | |
run: | | |
git config --global user.name 'keinn51' | |
git config --global user.email '[email protected]' | |
- name: Update submodule | |
run: | | |
git submodule update --init | |
git submodule update --remote | |
git add . | |
git commit -m "Update submodule" || echo "No changes to commit" | |
git push https://${{ secrets.GH_PAT }}@github.com/toy-project-kyungsle/2024-done.git main |