Skip to content

Commit

Permalink
Update autoUpdate.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gosirys authored Sep 7, 2023
1 parent bd7ae92 commit ac41581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/autoUpdate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ jobs:
- name: Update submodules to the latest commit
run: |
git submodule update --init --recursive --depth=1 # Initialize all submodules first
git submodule foreach --recursive 'git checkout $(git rev-parse --abbrev-ref HEAD) && git pull --ff-only --depth=1 origin || echo "Failed to update submodule"'
git submodule foreach --recursive 'git fetch origin && git reset --hard origin/$(git rev-parse --abbrev-ref HEAD) || echo "Failed to reset submodule"'
- name: Commit and push submodule changes
run: git diff --quiet && git diff --staged --quiet || (git add . && git commit -m "Updated submodules" && git push --force-with-lease || echo "Push failed")

0 comments on commit ac41581

Please sign in to comment.