Skip to content

Commit

Permalink
Update update-submodules.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Colack authored Nov 18, 2024
1 parent 25b5a0f commit 54e6683
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/update-submodules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,17 @@ jobs:
run: |
git submodule foreach 'git fetch && git merge -X theirs || true'
# Commit and push changes if there are any updates
# Commit and push changes
- name: Commit and push changes
env:
TOKEN: ${{ secrets.wk_token }} # Use the PAT secret for authentication
run: |
if [ -n "$(git status --porcelain)" ]; then
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "Update submodules with merged changes"
git push origin HEAD
git push https://$TOKEN@github.com/WatermelonKatanaDevs/WatermelonKatana.git HEAD
else
echo "No changes in submodules to commit."
fi

0 comments on commit 54e6683

Please sign in to comment.