From 32987c4d58a7ec897df34a178664ceb133bf43e8 Mon Sep 17 00:00:00 2001 From: Dave Choi Date: Tue, 16 Jun 2026 15:08:37 +0900 Subject: [PATCH] =?UTF-8?q?fix(ci):=20check-sdk-update=20Create=20issue=20?= =?UTF-8?q?step=EC=9D=98=20outputs=20=EB=B3=B4=EA=B0=84=EC=9D=84=20env?= =?UTF-8?q?=EB=A1=9C=20=EC=9D=B4=EC=A0=84=20=E2=80=94=20=ED=8A=B9=EC=88=98?= =?UTF-8?q?=EB=AC=B8=EC=9E=90=20=EA=B5=AC=EB=AC=B8=20=ED=8C=8C=EC=86=90=20?= =?UTF-8?q?=EB=B0=A9=EC=A7=80=20(#589)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ${{ steps.exports.outputs.* }}를 JS 템플릿 리터럴에 직접 보간하면 export diff 출력이 백틱·\${·따옴표·개행을 담을 때 YAML→JS 변환 결과가 구문 오류가 되어 step 전체가 throw됐다. env: 블록으로 이전해 process.env.NEW_EXPORTS / process.env.REMOVED_EXPORTS로 읽도록 수정. script 최외곽을 try/catch로 감싸 실패 시 core.setFailed로 명시적 에러 메시지를 남기도록 안전망 추가. --- .github/workflows/check-sdk-update.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-sdk-update.yml b/.github/workflows/check-sdk-update.yml index c0bd372..93d23d5 100644 --- a/.github/workflows/check-sdk-update.yml +++ b/.github/workflows/check-sdk-update.yml @@ -45,16 +45,20 @@ jobs: - name: Create issue if update available if: steps.check.outcome == 'failure' uses: actions/github-script@v9 + env: + NEW_EXPORTS: ${{ steps.exports.outputs.new_exports }} + REMOVED_EXPORTS: ${{ steps.exports.outputs.removed_exports }} with: script: | + try { const fs = require('fs'); let typecheckOutput = ''; try { typecheckOutput = fs.readFileSync('typecheck-output.txt', 'utf8'); } catch {} - const newExports = `${{ steps.exports.outputs.new_exports }}`.trim(); - const removedExports = `${{ steps.exports.outputs.removed_exports }}`.trim(); + const newExports = (process.env.NEW_EXPORTS || '').trim(); + const removedExports = (process.env.REMOVED_EXPORTS || '').trim(); const newList = newExports ? newExports.split('\n').filter(Boolean) : []; const removedList = removedExports ? removedExports.split('\n').filter(Boolean) : []; @@ -133,3 +137,6 @@ jobs: labels: ['sdk-update'], }); } + } catch (e) { + core.setFailed('Create issue step 실패: ' + (e instanceof Error ? e.message : String(e))); + }