Skip to content

Merge pull request #1002 from CombustionToolbox/reduceSize #183

Merge pull request #1002 from CombustionToolbox/reduceSize

Merge pull request #1002 from CombustionToolbox/reduceSize #183

name: 'Send submodule updates to parent repository'
on:
push:
branches:
- master
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: CombustionToolbox/combustion_toolbox_website
token: ${{ secrets.CI_TOKEN }}
submodules: true
- name: Pull & update submodules recursively
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Commit
run: |
git config user.email "actions@github.com"
git config user.name "GitHub Actions - update submodules"
git checkout main
git add --all
git commit -m "Update submodules" || echo "No changes to commit"
git push