Skip to content

Commit

Permalink
TEST: output formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ommyjay committed Apr 1, 2022
1 parent 4381d5f commit ee9a4f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ async function run(): Promise<void> {
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)
}
Expand Down

0 comments on commit ee9a4f2

Please sign in to comment.