auto sync with main repo #4
Workflow file for this run
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: Sync submodules | ||
on: workflow_dispatch | ||
jobs: | ||
build: | ||
name: Sync with Main repo | ||
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" |