Skip to content

auto sync with main repo #8

auto sync with main repo

auto sync with main repo #8

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

Check failure on line 11 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 11
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script: |
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"