vault backup: 2024-01-19 08:25:02 #418
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: Send submodule updates to personal github page | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
repository: hpdobrica/hpdobrica.github.io | |
token: ${{ secrets.PERSONAL_ACCESS_TOKEN_GITHUB }} | |
- name: Pull & update submodules recursively | |
run: | | |
git submodule update --init --recursive | |
git submodule update --recursive --remote | |
- name: Commit | |
run: | | |
git config user.email "[email protected]" | |
git config user.name "GitHub Actions - update public notes" | |
git add --all | |
git commit -m "Update public notes" || echo "No changes to commit" | |
git push |