Merge pull request #10 from heheller:heheller-patch-2 #19
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: Forward changes to mo271.github.io | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
repository: mo271/mo271.github.io | |
token: ${{ secrets.UPDATE_SUBMODULE }} | |
submodules: true | |
- name: Pull & update the "klein" submodule | |
run: | | |
git submodule update --init --recursive klein | |
git submodule update --remote klein | |
- name: Commit | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "GitHub Actions - mirror to parent" | |
git add --all | |
git commit -m "Update klein submodule" || echo "No changes to commit" | |
git push |