From ee9a4f21c406b68699972bbb4409df2a4da4af5a Mon Sep 17 00:00:00 2001 From: Omar Date: Fri, 1 Apr 2022 21:28:02 +0300 Subject: [PATCH] TEST: output formatting --- .github/workflows/test.yml | 2 +- src/main.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1b539c5..7762b85 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,4 +31,4 @@ jobs: devto_organization_id: ${{ secrets.DEVTO_ORGANIZATION_ID }} devto_api_key: ${{ secrets.DEVTO_API_KEY }} - name: Get the post results - run: echo "postToDevToBlogResponse ${{ steps.publish.outputs.postToDevToBlogResponse }}" + run: echo "postToDevToBlogResponse ${{ steps.publish.outputs.post_to_devto_blog_response }}" diff --git a/src/main.ts b/src/main.ts index a88e0a0..6330eaf 100644 --- a/src/main.ts +++ b/src/main.ts @@ -27,8 +27,8 @@ async function run(): Promise { const postToDevToBlogResponse = await devTo.postToDevToBlog( devToArticleData ) - core.debug(JSON.stringify(postToDevToBlogResponse, undefined, 2)) - core.setOutput('postToDevToBlogResponse :', postToDevToBlogResponse) + core.debug('Output result_json:\n' + postToDevToBlogResponse) + core.setOutput('post_to_devto_blog_response', postToDevToBlogResponse) } catch (error) { if (error instanceof Error) core.setFailed(error.message) }