Skip to content

Resync Submodules #1189

Resync Submodules

Resync Submodules #1189

Workflow file for this run

# 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"