Update Submodules #12
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: | |
# This will run the workflow every day at 04:00 UTC | |
# 2 hrs after mailing summaries run | |
- cron: "0 4 * * *" | |
workflow_dispatch: | |
repository_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
# Fetch all history so we can push to the repo | |
fetch-depth: 0 | |
token: ${{ secrets.YOUR_PERSONAL_ACCESS_TOKEN }} | |
- name: Update submodules | |
run: | | |
git submodule update --remote --merge | |
git commit -m "Updated submodules" || echo "No changes to commit" | |
git push |