Skip to content

auto sync with main repo #4

auto sync with main repo

auto sync with main repo #4

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: |

Check failure on line 15 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 15
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"