Skip to content

Sync Submodules

Sync Submodules #3

name: Sync Submodules
on: workflow_dispatch
jobs:
repo_sync:
name: Sync with Main repo
runs-on: ubuntu-latest
steps:
- name: ssh and git module update
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script: echo hi
# cd /opt/software-discovery-tool-deploy
# git pull --recurse-submodules
# git submodule update --remote --recursive
# git commit -sam "Auto updated submodule references" && git push || echo "No changes to commit"