Skip to content

Commit 4e9b2c2

Browse files
committed
Write output to a file
1 parent 7d4724f commit 4e9b2c2

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

‎.github/workflows/ci.yaml‎

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
uses: actions/checkout@v4
6464
with:
6565
path: branch
66-
66+
6767
- name: Checkout main
6868
uses: actions/checkout@v4
6969
with:
@@ -110,11 +110,17 @@ jobs:
110110
if: steps.cache-node_modules-main.outputs.cache-hit != 'true'
111111
working-directory: main
112112
run: npm ci
113-
113+
114114
- name: Generate (branch)
115115
working-directory: branch
116-
run: npm run test:gen
117-
116+
run: |
117+
(npm run test:gen 2>&1 | tee output) || true # If this fails we're going to see a massive diff
118+
# We should probably still fail eventually
119+
120+
- name: View generation output (branch)
121+
working-directory: branch
122+
run: cat output
123+
118124
- name: Generate (main)
119125
working-directory: main
120126
run: npm run test:gen || true # We don't want to block on main failing to generate
@@ -131,4 +137,4 @@ jobs:
131137
uses: JoseThen/comment-pr@v1.2.0
132138
with:
133139
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
134-
file_path: './diff.md'
140+
file_path: "./diff.md"

0 commit comments

Comments
 (0)