Skip to content

Commit 9327a32

Browse files
committed
Fix
1 parent 18015cc commit 9327a32

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/nx.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,11 @@ jobs:
6262
contains(github.event.pull_request.labels.*.name, 'ci:normal')
6363
id: nx
6464
run: |
65-
set -o pipefail
66-
67-
{
68-
echo 'nx_output<<EOF'
69-
yarn nx run-many -t compile -c production
70-
echo 'EOF'
71-
} | tee -a "$GITHUB_OUTPUT"
65+
echo 'nx_output<<EOF' >> "$GITHUB_OUTPUT"
66+
yarn nx run-many -t compile -c production 2>&1 | tee -a "$GITHUB_OUTPUT"
67+
status=${PIPESTATUS[0]}
68+
echo 'EOF' >> "$GITHUB_OUTPUT"
69+
exit $status
7270
- if: github.event_name == 'pull_request' &&
7371
contains(github.event.pull_request.labels.*.name, 'ci:merged')
7472
run: yarn nx run-many -t $ALL_TASKS -c production -p="tag:ci:normal,tag:ci:merged"

0 commit comments

Comments
 (0)