Update submodules #657
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: Update submodules | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: false | |
lfs: true | |
- name: Update submodules | |
run: git submodule update --init --remote --force | |
- name: Commit update | |
continue-on-error: true | |
run: | | |
git config --local user.name "precice-bot" | |
git config --local user.email "[email protected]" | |
git commit -m "Update submodules" -a | |
- name: Push commit | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.WORKFLOW_DISPATCH_TOKEN }} | |
branch: ${{ github.ref }} |