Update Submodules #79
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
name: Update Submodules | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
jobs: | |
update-submodules: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the jobify repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Configure Git user | |
run: | | |
git config --global user.name "btkcodedev" | |
git config --global user.email "[email protected]" | |
- name: Update submodules to the latest commit | |
run: | | |
git submodule update --remote | |
git add . | |
git commit -m "Update submodules to latest commit" | |
git push origin main | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |