Skip to content

Commit c35f5d6

Browse files
committed
Testing new workflow
1 parent bc9165f commit c35f5d6

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/configlet-sync.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,13 @@ jobs:
5353
id: sync_test
5454
continue-on-error: true
5555
run: |
56-
output_file=/tmp/configlet_output.txt
57-
58-
set +e
59-
./bin/configlet sync --tests > "$output_file" 2>&1
56+
set e+
57+
configlet_raw_output="$(./bin/configlet sync --tests 2>&1)"
6058
exit_code=$?
61-
set -e
62-
63-
configlet_raw_output="$(cat "$output_file")"
64-
59+
set e-
60+
6561
echo "exit_code=$exit_code" >> "$GITHUB_OUTPUT"
6662
printf "output<<EOF\n%s\nEOF\n" "$configlet_raw_output" >> "$GITHUB_OUTPUT"
67-
echo "$exit_code"
6863
6964
printf "configlet output:\n%s\n" "$configlet_raw_output"
7065

0 commit comments

Comments
 (0)