Skip to content

Commit ee9a4f2

Browse files
committed
TEST: output formatting
1 parent 4381d5f commit ee9a4f2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
devto_organization_id: ${{ secrets.DEVTO_ORGANIZATION_ID }}
3232
devto_api_key: ${{ secrets.DEVTO_API_KEY }}
3333
- name: Get the post results
34-
run: echo "postToDevToBlogResponse ${{ steps.publish.outputs.postToDevToBlogResponse }}"
34+
run: echo "postToDevToBlogResponse ${{ steps.publish.outputs.post_to_devto_blog_response }}"

src/main.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ async function run(): Promise<void> {
2727
const postToDevToBlogResponse = await devTo.postToDevToBlog(
2828
devToArticleData
2929
)
30-
core.debug(JSON.stringify(postToDevToBlogResponse, undefined, 2))
31-
core.setOutput('postToDevToBlogResponse :', postToDevToBlogResponse)
30+
core.debug('Output result_json:\n' + postToDevToBlogResponse)
31+
core.setOutput('post_to_devto_blog_response', postToDevToBlogResponse)
3232
} catch (error) {
3333
if (error instanceof Error) core.setFailed(error.message)
3434
}

0 commit comments

Comments
 (0)