Update repository #45
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 repository | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
updater: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎 | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Update submodules | |
run: | | |
git pull --recurse-submodules | |
git submodule update --remote --recursive | |
- name: Configure git author | |
run: | | |
git config user.name "GitHub Actions[bot]" | |
git config user.email "github-actions[bot]@users.noreply.github.com" | |
- name: commit | |
run: | | |
git add . | |
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit" |