Skip to content

Commit f3b9eb3

Browse files
committed
Fix issue where netlify deploy started outputting debug information to stdout.
1 parent 53b0906 commit f3b9eb3

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

CHANGELOG.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
## Netlify Deploy Site v1.0.0
1+
# Netlify Deploy Site v1.0.1
2+
3+
## BUG FIXES
4+
5+
* Fix issue where `netlify deploy` started outputting debug information to stdout.
6+
7+
# Netlify Deploy Site v1.0.0
28

39
Initial release.
410

action.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,10 @@ runs:
8484
fi
8585
8686
TEMP_JSON="${{runner.temp}}/output.json"
87-
netlify deploy --json --debug "${ARGS[@]}" | tee "$TEMP_JSON"
87+
netlify deploy --json --debug "${ARGS[@]}" > >(tee "$TEMP_JSON")
88+
89+
# remove non-json output
90+
gawk -i inplace 'BEGIN { p=0 }; /^{$/ { p=1 }; p { print $0 }; p==1 && /^}$/ { p=0 }' "$TEMP_JSON"
8891
8992
jq -r '"site-name=" + .site_name' "$TEMP_JSON" >> $GITHUB_OUTPUT
9093
jq -r '"deploy-id=" + .deploy_id' "$TEMP_JSON" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)