Skip to content

auto sync with main repo #3

auto sync with main repo

auto sync with main repo #3

name: Sync submodules
on: workflow_dispatch
jobs:
build:
name: Sync with Main repo

Check failure on line 6 in .github/workflows/updatesubmodules.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/updatesubmodules.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
runs-on: ubuntu-latest
steps:
- name: ssh and pull and restart
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script: |
git pull --recurse-submodules
git submodule update --remote --recursive
git commit -sam "Auto updated submodule references" && git push || echo "No changes to commit"