From 2e53d04b44ed5630d904cc2f45b066e6befffc08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9E=84=EC=9E=AC=EC=96=B8?= Date: Thu, 25 Feb 2021 17:08:43 +0900 Subject: [PATCH] fix: github action error (#536) --- .github/workflows/detectRuntimeError.yml | 5 ++--- apps/image-editor/createConfigVariable.js | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/detectRuntimeError.yml b/.github/workflows/detectRuntimeError.yml index 88864f08a..8b2c3d559 100644 --- a/.github/workflows/detectRuntimeError.yml +++ b/.github/workflows/detectRuntimeError.yml @@ -27,11 +27,10 @@ jobs: url=`cat ./url.txt` echo "URLS=$url" >> $GITHUB_ENV - name: detect runtime error - working-directory: ${{ env.WORKING_DIRECTORY }} uses: nhn/toast-ui.detect-runtime-error-actions@v1.0.1 with: global-error-log-variable: ${{ env.ERROR_VARIABLE }} urls: ${{ env.URLS }} env: - BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }} - BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} + BROWSERSTACK_USERNAME: ${{secrets.BROWSERSTACK_USERNAME}} + BROWSERSTACK_ACCESS_KEY: ${{secrets.BROWSERSTACK_ACCESS_KEY}} diff --git a/apps/image-editor/createConfigVariable.js b/apps/image-editor/createConfigVariable.js index 60a41df4a..872835a32 100644 --- a/apps/image-editor/createConfigVariable.js +++ b/apps/image-editor/createConfigVariable.js @@ -1,6 +1,6 @@ const fs = require('fs'); const path = require('path'); -const config = require(path.resolve(process.cwd(), 'tuidoc.config.json')); +const config = require(path.resolve(__dirname, 'tuidoc.config.json')); const examples = config.examples || {}; const { filePath, globalErrorLogVariable } = examples;