diff --git a/.github/workflows/updatesubmodules.yml b/.github/workflows/updatesubmodules.yml index 797a0ed..c6e2622 100644 --- a/.github/workflows/updatesubmodules.yml +++ b/.github/workflows/updatesubmodules.yml @@ -1,18 +1,18 @@ 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 }} - run: | - 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" + 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: | + 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"