Update Submodules #743
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 | |
# Controls when the action will run. | |
on: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
schedule: | |
- cron: "0 12 * * *" | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: "recursive" | |
- name: Update Submodules | |
run: | | |
git pull --recurse-submodules | |
git submodule update --remote | |
git config --global user.name 'Neutron Updater' | |
git config --global user.email '[email protected]' | |
git remote set-url origin https://x-access-token:${{ secrets.TOKEN }}@github.com/${{ github.repository }} | |
git commit -am "Neutron: $(cd neutron && git show -s --format=%s)" && git push || echo "No changes to commit" | |