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 25, 2024
1 parent 0e6bdfb commit 04621e2
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/updatesubmodules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,26 +14,11 @@ jobs:
key: ${{ secrets.KEY }}
script: |
cd /opt/software-discovery-tool-deploy
git checkout -b submodule-update
git checkout -b "$(date +%b%d)"
cd /opt/software-discovery-tool-deploy/software-discovery-tool
git checkout master
git pull origin master
cd /opt/software-discovery-tool-deploy
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 submodule-update || echo "No changes to commit"
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
with:
pull-request-url: https://github.com/rachejazz/software-discovery-tool-deploy/
token: ${{ secrets.SDT_PAT_PUSH }}
commit-message: submodule update
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
signoff: true
branch: submodule-update
delete-branch: true
title: '[Automated] Submodule update'
reviewers: rachejazz
draft: false
git commit -sam "Auto updated submodule references" && git push git_update "$(date +%b%d)" || echo "No changes to commit"

0 comments on commit 04621e2

Please sign in to comment.