Skip to content

Commit 06503de

Browse files
committed
Support repository dispatch based on ESP-IDF tag
1 parent e19b502 commit 06503de

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/repository_dispatch.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ EVENT_JSON=`cat "$GITHUB_EVENT_PATH"`
99
action=`echo "$EVENT_JSON" | jq -r '.action'`
1010
payload=`echo "$EVENT_JSON" | jq -r '.client_payload'`
1111
branch=`echo "$payload" | jq -r '.branch'`
12+
tag=`echo "$payload" | jq -r '.tag'`
1213
commit=`echo "$payload" | jq -r '.commit'`
1314
builder=`echo "$payload" | jq -r '.builder'`
1415
arduino=`echo "$payload" | jq -r '.arduino'`
1516

16-
echo "Action: $action, Branch: $branch, Commit: $commit, Builder: $builder"
17+
echo "Action: $action, Branch: $branch, Tag: $tag, Commit: $commit, Builder: $builder, Arduino: $arduino"
1718

1819
if [ ! "$action" == "deploy" ] && [ ! "$action" == "build" ]; then
1920
echo "Bad Action $action"
@@ -26,6 +27,8 @@ if [ ! "$commit" == "" ] && [ ! "$commit" == "null" ]; then
2627
export IDF_COMMIT="$commit"
2728
else
2829
commit=""
30+
if [ ! "$tag" == "" ] && [ ! "$tag" == "null" ]; then
31+
export IDF_TAG="$tag"
2932
if [ ! "$branch" == "" ] && [ ! "$branch" == "null" ]; then
3033
export IDF_BRANCH="$branch"
3134
fi

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy