Push updates to hassio-repository

This commit is contained in:
bohdan-s
2023-02-06 09:27:12 +11:00
committed by GitHub
parent b8626dc849
commit ede7fcf602
+30
View File
@@ -0,0 +1,30 @@
name: Send submodule updates to parent repo
on:
push:
branches:
- main
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: bohdan-s/hassio-repository
token: ${{ secrets.PRIVATE_TOKEN_GITHUB }}
submodules: true
- 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