Skip to content

Commit

Permalink
Update update-submodules.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Routhleck committed Feb 3, 2025
1 parent 4fa6335 commit 6364493
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/update-submodules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,23 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "actions@github.com"
- name: Update Submodules
run: |
git submodule update --remote --merge
git add .
git commit -m "Update submodules" || echo "No changes to commit"
if [[ $(git status --porcelain) ]]; then
git add .
git commit -m "Update submodules"
git push
else
echo "No changes to commit"
fi

0 comments on commit 6364493

Please sign in to comment.