Skip to content

Commit 7562fbd

Browse files
committed
Github complains when pushing to the libs repo
1 parent 7ceb046 commit 7562fbd

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

tools/install-esp-idf.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ if [ "$GITHUB_EVENT_NAME" == "schedule" ] || [ "$GITHUB_EVENT_NAME" == "reposito
8080
exit 0
8181
fi
8282

83+
# setup git for pushing
84+
git config --global github.user "$GITHUB_ACTOR"
85+
git config --global user.name "$GITHUB_ACTOR"
86+
git config --global user.email "$GITHUB_ACTOR@github.com"
87+
8388
export AR_NEW_BRANCH_NAME
8489
export AR_NEW_COMMIT_MESSAGE
8590
export AR_NEW_PR_TITLE

tools/push-to-arduino.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@ if ! [ -d "$AR_COMPS/arduino" ]; then
1111
exit 1
1212
fi
1313

14-
# setup git for pushing
15-
git config --global github.user "$GITHUB_ACTOR"
16-
git config --global user.name "$GITHUB_ACTOR"
17-
git config --global user.email "$GITHUB_ACTOR@github.com"
18-
1914
#
2015
# UPDATE FILES
2116
#

tools/repository_dispatch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ commit=`echo "$payload" | jq -r '.commit'`
1414
builder=`echo "$payload" | jq -r '.builder'`
1515
arduino=`echo "$payload" | jq -r '.arduino'`
1616

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

1919
if [ ! "$action" == "deploy" ] && [ ! "$action" == "build" ]; then
2020
echo "Bad Action $action"

0 commit comments

Comments
 (0)