Add file in sdk with all component versions
This commit is contained in:
parent
e4fd9cf990
commit
dbcc142bb4
2 changed files with 17 additions and 3 deletions
13
build.sh
13
build.sh
|
|
@ -122,7 +122,18 @@ fi
|
|||
|
||||
rm -rf build sdkconfig out
|
||||
|
||||
echo $(git -C $AR_COMPS/arduino describe --all --long) > version.txt
|
||||
# Add components version info
|
||||
mkdir -p "$AR_TOOLS/sdk" && rm -rf version.txt && rm -rf "$AR_TOOLS/sdk/versions.txt"
|
||||
component_version="esp-idf: "$(git -C "$IDF_PATH" symbolic-ref --short HEAD)" "$(git -C "$IDF_PATH" rev-parse --short HEAD)
|
||||
echo $component_version >> version.txt && echo $component_version >> "$AR_TOOLS/sdk/versions.txt"
|
||||
for component in `ls "$AR_COMPS"`; do
|
||||
if [ -d "$AR_COMPS/$component/.git" ] || [ -d "$AR_COMPS/$component/.github" ]; then
|
||||
component_version="$component: "$(git -C "$AR_COMPS/$component" symbolic-ref --short HEAD)" "$(git -C "$AR_COMPS/$component" rev-parse --short HEAD)
|
||||
echo $component_version >> version.txt && echo $component_version >> "$AR_TOOLS/sdk/versions.txt"
|
||||
fi
|
||||
done
|
||||
component_version="tinyusb: "$(git -C "$AR_COMPS/arduino_tinyusb/tinyusb" symbolic-ref --short HEAD)" "$(git -C "$AR_COMPS/arduino_tinyusb/tinyusb" rev-parse --short HEAD)
|
||||
echo $component_version >> version.txt && echo $component_version >> "$AR_TOOLS/sdk/versions.txt"
|
||||
|
||||
#targets_count=`jq -c '.targets[] | length' configs/builds.json`
|
||||
for target_json in `jq -c '.targets[]' configs/builds.json`; do
|
||||
|
|
|
|||
|
|
@ -106,10 +106,13 @@ function git_create_pr(){ # git_create_pr <branch> <title>
|
|||
local pr_target="$3"
|
||||
local pr_body=""
|
||||
for component in `ls "$AR_COMPS"`; do
|
||||
if [ ! $component == "arduino" ] && [ -d "$AR_COMPS/$component/.git" ]; then
|
||||
if [ ! $component == "arduino" ]; then
|
||||
if [ -d "$AR_COMPS/$component/.git" ] || [ -d "$AR_COMPS/$component/.github" ]; then
|
||||
pr_body+="$component: "$(git -C "$AR_COMPS/$component" symbolic-ref --short HEAD)" "$(git -C "$AR_COMPS/$component" rev-parse --short HEAD)"\r\n"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
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"
|
||||
local pr_data="{\"title\": \"$pr_title\", \"body\": \"$pr_body\", \"head\": \"$AR_USER:$pr_branch\", \"base\": \"$pr_target\"}"
|
||||
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"`
|
||||
local done_pr=`echo "$git_create_pr_res" | jq -r '.title'`
|
||||
|
|
|
|||
Loading…
Reference in a new issue