Skip to content

Commit

Permalink
API response fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
frikishaan committed Aug 29, 2020
1 parent 6e3f410 commit e69abe2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ if (payload.action === "published") {
// Creating POST request to DEV.to API
var response = createPost(data, secret);

console.log(typeof response);
console.log(response);

if (response) {
core.info(
`Post has been published here is the URL - ${response.data.url}`
Expand Down
1 change: 0 additions & 1 deletion src/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ async function createPost(data, secret) {
},
});

console.log(res);
return res;
} catch (e) {
core.setFailed("An error has been occured " + e);
Expand Down

0 comments on commit e69abe2

Please sign in to comment.