Skip to content

Commit 38504c2

Browse files
committed
test: changelog output
1 parent e02bd8f commit 38504c2

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ jobs:
2828

2929
- run: echo "${{ steps.cog-check.outputs.stdout }}"
3030

31+
- uses: ./cocogitto-action
32+
id: cog-changelog
33+
with:
34+
command: changelog
35+
36+
- run: echo "${{ steps.cog-changelog.outputs.stdout }}"
37+
3138
test-container:
3239
runs-on: ubuntu-latest
3340
container:
@@ -51,3 +58,10 @@ jobs:
5158
command: check
5259

5360
- run: echo "${{ steps.cog-check.outputs.stdout }}"
61+
62+
- uses: ./cocogitto-action
63+
id: cog-changelog
64+
with:
65+
command: changelog
66+
67+
- run: echo "${{ steps.cog-changelog.outputs.stdout }}"

cog.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ if [ -z "$COMMAND" ]; then
2121
fi
2222

2323
echo "Running command: cog $COMMAND $ARGS"
24-
stdout=$(cog $COMMAND $ARGS 2>&1 | tee /dev/stdout)
24+
stdout="$(cog $COMMAND $ARGS 2>&1)"
25+
echo $stdout
2526
echo "stdout<<EOF" >> "$GITHUB_OUTPUT"
2627
echo "$stdout" >> "$GITHUB_OUTPUT"
2728
echo "EOF" >> "$GITHUB_OUTPUT"

0 commit comments

Comments
 (0)