Skip to content

Commit

Permalink
fix gen-test command error output
Browse files Browse the repository at this point in the history
Signed-off-by: kevindiu <[email protected]>
  • Loading branch information
kevindiu committed Apr 11, 2023
1 parent 9503588 commit 4a8f864
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/chatops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ jobs:
git checkout ${HEAD_BRANCH}
make gotests/install
GITHUB_OUTPUT=$(make gotests/gen 2>&1 >/dev/null)
ERR_LOG=$(make gotests/gen 2>&1 >/dev/null)
echo "ERR_LOG=$ERR_LOG" >> $GITHUB_OUTPUT
git add cmd hack internal pkg
git commit -S --signoff -m ":robot: Add automatically generated tests"
Expand All @@ -362,7 +363,7 @@ jobs:
- name: failure comment
if: failure()
run: |
ERR_LOG=${{ steps.gen_test.outputs }}
ERR_LOG=${{ steps.gen_test.outputs.ERR_LOG }}
curl --include --verbose --fail \
-H "Accept: application/json" \
-H "Content-Type:application/json" \
Expand Down

0 comments on commit 4a8f864

Please sign in to comment.