Skip to content

Commit

Permalink
auto sync with main repo
Browse files Browse the repository at this point in the history
Signed-off-by: rachejazz <[email protected]>
  • Loading branch information
rachejazz committed May 23, 2024
1 parent 5de53b7 commit 2143621
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/updatesubmodules.yml
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 2143621

Please sign in to comment.