Skip to content

Commit f73b7ba

Browse files
committed
test
1 parent f13e49b commit f73b7ba

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/cron.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ jobs:
5656
else
5757
git checkout $branch
5858
fi
59-
IDF_BRANCH=$branch source ./tools/check-deploy-needed.sh
59+
export IDF_BRANCH=$branch
60+
source ./tools/check-deploy-needed.sh
6061
#if [ "$DEPLOY_NEEDED" == "1" ]; then
6162
echo "DEPLOY_NEEDED = $DEPLOY_NEEDED"
6263
branches+="\"$branch\","

tools/check-deploy-needed.sh

+5
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ source ./tools/config.sh
99

1010
IDF_COMMIT=`github_last_commit "$IDF_REPO" "$IDF_BRANCH"`
1111

12+
if [ -z $IDF_COMMIT ]; then
13+
echo "Failed to get IDF commit"
14+
exit 1
15+
fi
16+
1217
if [ -z $GITHUB_HEAD_REF ]; then
1318
current_branch=`git branch --show-current`
1419
else

0 commit comments

Comments
 (0)