Skip to content

Commit

Permalink
Updated workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
StrahinjaJacimovic committed Aug 22, 2024
1 parent ad133f1 commit 247001a
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/updateChangelogs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ jobs:
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
git add CHANGELOG.md
git commit -m "Updated main CHANGELOG.md file with latest merged release."
git push https://${TOKEN}:[email protected]/MikroElektronika/mikrosdk_v2.git HEAD:master
if [ -n "$(git status --porcelain)" ]; then
echo "Updating with new CHANGELOG.md";
git add CHANGELOG.md
git commit -m "Updated main CHANGELOG.md file with latest merged release."
git push https://${TOKEN}:[email protected]/MikroElektronika/mikrosdk_v2.git HEAD:master
else
echo "No changes made to CHANGELOG.md";
fi

0 comments on commit 247001a

Please sign in to comment.