Skip to content

Created CONTRIBUTE.md #12

Created CONTRIBUTE.md

Created CONTRIBUTE.md #12

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:

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
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script: |
# echo hi
cd /opt/software-discovery-tool-deploy
git checkout -b "$(date +%b%d)"
# git pull --recurse-submodules origin main
# git submodule update --remote --recursive
cd /opt/software-discovery-tool
git pull origin master
cd /opt/software-discovery-tool
git remote remove git_update
git remote add git_update https://${{ secrets.SDT_USER_PUSH }}:${{ secrets.SDT_PAT_PUSH }}@github.com/rachejazz/software-discovery-tool-deploy.git
git commit -sam "Auto updated submodule references" && git push git_update "$(date +%b%d)" || echo "No changes to commit"