Automatic Submodule Update #179
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: 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 "[email protected]" | |
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 | |