Merge pull request #226 from alan-turing-institute/upgrade-jb-version #85
Workflow file for this run
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: | |
push: | |
branches: | |
- master | |
- main | |
paths: | |
- "book/**" | |
jobs: | |
update-submodules: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Checkout, Merge and commit files | |
run: | | |
git config --global user.email "acocac@users.noreply.github.com" | |
git config --global user.name "acocac" | |
git submodule update --init --recursive --remote | |
git submodule foreach git reset --hard origin/render | |
git add . | |
git commit -m "Update submodules to latest revisions" -a --allow-empty | |
- name: Pushing to the protected branch 'master' | |
uses: CasperWA/push-protected@v2 | |
with: | |
token: ${{ secrets.PUSH_TO_PROTECTED_BRANCH }} | |
branch: master |