Skip to content

Commit 5a7c1c0

Browse files
committed
ci(deploy): Fix check for GITHUB_OUTPUT
1 parent 6b0a0e6 commit 5a7c1c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/cron_build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
env:
5252
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5353
run: |
54-
source ./tools/check-deploy-needed.sh
54+
bash ./tools/check-deploy-needed.sh
5555
targets_list=$(echo "${{ inputs.targets }}" | sed 's/ *, */,/g' | sed 's/^/["/' | sed 's/$/"]/' | sed 's/,/","/g')
5656
echo "Targets list: $targets_list"
5757
echo "targets_list=$targets_list" >> $GITHUB_OUTPUT

tools/check-deploy-needed.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ echo "LIBS_ASSET_ID: $LIBS_ASSET_ID"
119119
echo "LIBS_HAS_ASSET: $LIBS_HAS_ASSET"
120120
echo "DEPLOY_NEEDED: $DEPLOY_NEEDED"
121121

122-
if [ ! -x $GITHUB_OUTPUT ]; then
122+
if [ -n "$GITHUB_OUTPUT" ]; then
123123
echo "idf_commit=$IDF_COMMIT" >> "$GITHUB_OUTPUT"
124124
echo "ar_branch=$AR_BRANCH" >> "$GITHUB_OUTPUT"
125125
echo "ar_new_commit_message=$AR_NEW_COMMIT_MESSAGE" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)