From 7b4cbc045ea05634ca286ad855b767529c4b6ab0 Mon Sep 17 00:00:00 2001 From: rachejazz Date: Thu, 23 May 2024 14:55:21 +0100 Subject: [PATCH] auto sync with main repo Signed-off-by: rachejazz --- .github/workflows/updatesubmodules.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/updatesubmodules.yml b/.github/workflows/updatesubmodules.yml index dcc4e07..e310842 100644 --- a/.github/workflows/updatesubmodules.yml +++ b/.github/workflows/updatesubmodules.yml @@ -2,7 +2,7 @@ name: Sync submodules on: workflow_dispatch jobs: - build: + sync: name: Sync with Main repo runs-on: ubuntu-latest steps: @@ -13,6 +13,7 @@ jobs: 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" + 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"