Skip to content

Commit

Permalink
Update update-submodule.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag629 authored Aug 1, 2024
1 parent 3eb7ad3 commit 5ddd4da
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/update-submodule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ jobs:
run: |
cd codercops-site
git submodule update --remote --merge
git add .
git commit -m "Update submodule to codercops-content commit ${{ env.commit_hash }}"
git push origin main # Change to your branch name if needed
git status
if [ -n "$(git status --porcelain)" ]; then
git add path-to-content # Ensure you add the submodule path specifically
git commit -m "Update submodule to codercops-blogs commit ${{ env.commit_hash }}"
git push origin main # Change to your branch name if needed
else
echo "Submodule is already up to date."
fi

0 comments on commit 5ddd4da

Please sign in to comment.