Skip to content

Commit 4886b85

Browse files
Remove debug information from the output of netlify deploy. (#2)
* Remove debug information from the output of netlify deploy. * Add PR number to CHANGELOG * Tune CHANGELOG entry * Fix accidental change --------- Co-authored-by: Robrecht Cannoodt <[email protected]>
1 parent f3b9eb3 commit 4886b85

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# Netlify Deploy Site v1.0.2
2+
3+
## BUG FIXES
4+
5+
* Alternate solution for removing debug info from stdout (PR #2).
6+
17
# Netlify Deploy Site v1.0.1
28

39
## BUG FIXES
@@ -21,4 +27,4 @@ Example usage:
2127
message: 'Deploy production ${{ github.ref }}'
2228
```
2329
24-
See the README for more information.
30+
See the README for more information.

action.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,11 @@ runs:
8484
fi
8585
8686
TEMP_JSON="${{runner.temp}}/output.json"
87-
netlify deploy --json --debug "${ARGS[@]}" > >(tee "$TEMP_JSON")
87+
88+
netlify deploy --json "${ARGS[@]}" > >(tee "$TEMP_JSON")
8889
8990
# remove non-json output
90-
gawk -i inplace 'BEGIN { p=0 }; /^{$/ { p=1 }; p { print $0 }; p==1 && /^}$/ { p=0 }' "$TEMP_JSON"
91+
# gawk -i inplace 'BEGIN { p=0 }; /^{$/ { p=1 }; p { print $0 }; p==1 && /^}$/ { p=0 }' "$TEMP_JSON"
9192
9293
jq -r '"site-name=" + .site_name' "$TEMP_JSON" >> $GITHUB_OUTPUT
9394
jq -r '"deploy-id=" + .deploy_id' "$TEMP_JSON" >> $GITHUB_OUTPUT
@@ -96,4 +97,5 @@ runs:
9697
9798
branding:
9899
icon: arrow-up-circle
99-
color: blue
100+
color: blue
101+

0 commit comments

Comments
 (0)