-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(workflow): Update Zephyr-HAL workflow (#1331)
Signed-off-by: Furkan Akkiz <[email protected]>
- Loading branch information
Showing
2 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,10 +69,19 @@ jobs: | |
- name: Push changes to hal_adi repository | ||
run: | | ||
echo "$(pwd) - $(ls)" | ||
echo -e "$(pwd)\n\n$(ls)\n" | ||
cd ./hal_adi | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "GitHub Actions" | ||
git add * | ||
git commit -m "Update Zephyr MSDK Hal based on MSDK PR: https://github.com/analogdevicesinc/msdk/pull/${PR_NUM}" | ||
git push | ||
if [[ -n $(git status -s) ]]; then | ||
echo "Starting to commit changes to hal_adi repository" | ||
cd ${msdk} | ||
msdk_head=$(git rev-parse HEAD) | ||
commit_author=$(git show --no-patch --format="%an <%ae>" ${msdk_head}) | ||
commit_msg=$(git show --no-patch --format="%B" ${msdk_head}) | ||
cd ${hal_adi} | ||
git add * | ||
git commit --author="${commit_author}" -m "${commit_msg}" | ||
git push | ||
else | ||
echo "No changes to commit" | ||
fi |