Resync Submodules #1095
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
# Resync Submodules | |
name: Resync Submodules | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 21 * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Checkout submodules | |
run: git pull --recurse-submodules | |
- name: Update submodules | |
run: git submodule update --remote --recursive --init --force | |
- name: Commit update | |
run: | | |
git config --global user.name 'qxip-push' | |
git config --global user.email '[email protected]' | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} | |
git commit -am "Auto updated submodule references" && git push || echo "No changes to commit" |