Skip to content

Automatic Submodule Update #778

Automatic Submodule Update

Automatic Submodule Update #778

name: Automatic Submodule Update
on:
schedule:
- cron: '8 14 * * *'
jobs:
auto-update-submodules:
runs-on: ${{ matrix.os }}
env:
TERM: xterm
strategy:
matrix:
os:
- ubuntu-22.04
steps:
- name: Clone repo
uses: actions/checkout@v3
with:
token: ${{ secrets.RTFM47_COAXIUM_INJECTOR }}
fetch-depth: 0
submodules: true
- name: Setup git user
shell: bash
run: |
git config --local user.email "rtfm47@lando.dev"
git config --local user.name "rtfm-47"
- name: Update submodules
shell: bash
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Commit and push
shell: bash
run: |
git add .
git commit \
-m "Autoupdated submodule pointer"
git push origin main