Skip to content

Commit c98fc93

Browse files
authored
Add file in sdk with all component versions
1 parent 321ff2a commit c98fc93

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/config.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,13 @@ function git_create_pr(){ # git_create_pr <branch> <title>
109109
local pr_target="$3"
110110
local pr_body=""
111111
for component in `ls "$AR_COMPS"`; do
112-
if [ ! $component == "arduino" ] && [ -d "$AR_COMPS/$component/.git" ]; then
113-
pr_body+="$component: "$(git -C "$AR_COMPS/$component" symbolic-ref --short HEAD)" "$(git -C "$AR_COMPS/$component" rev-parse --short HEAD)"\r\n"
112+
if [ ! $component == "arduino" ]; then
113+
if [ -d "$AR_COMPS/$component/.git" ] || [ -d "$AR_COMPS/$component/.github" ]; then
114+
pr_body+="$component: "$(git -C "$AR_COMPS/$component" symbolic-ref --short HEAD)" "$(git -C "$AR_COMPS/$component" rev-parse --short HEAD)"\r\n"
115+
fi
114116
fi
115117
done
118+
pr_body+="tinyusb: "$(git -C "$AR_COMPS/arduino_tinyusb/tinyusb" symbolic-ref --short HEAD)" "$(git -C "$AR_COMPS/arduino_tinyusb/tinyusb" rev-parse --short HEAD)"\r\n"
116119
local pr_data="{\"title\": \"$pr_title\", \"body\": \"$pr_body\", \"head\": \"$AR_USER:$pr_branch\", \"base\": \"$pr_target\"}"
117120
git_create_pr_res=`echo "$pr_data" | curl -k -H "Authorization: token $GITHUB_TOKEN" -H "Accept: application/vnd.github.v3.raw+json" --data @- "https://api.github.com/repos/$AR_REPO/pulls"`
118121
local done_pr=`echo "$git_create_pr_res" | jq -r '.title'`

0 commit comments

Comments
 (0)