2024-03-06 17:49:50 +08:00
|
|
|
name: Send submodule updates to parent repo
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-05-23 17:27:15 +08:00
|
|
|
- main
|
2024-03-06 17:49:50 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
update:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
repository: fan-ziqi/BlindDog
|
|
|
|
token: ${{ secrets.PRIVATE_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 "actions@github.com"
|
|
|
|
git config user.name "GitHub Actions - update submodules"
|
|
|
|
git add --all
|
|
|
|
git commit -m "Update submodules" || echo "No changes to commit"
|
|
|
|
git push
|