Skip to content

Commit

Permalink
Updated TODOs and added messages in Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
frikishaan committed Aug 16, 2020
1 parent 6257e82 commit b68ec69
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ This GitHub action posts a new article on [DEV](https://dev.to) whenever a new r

- Add `organization_id` attribute in `action.yml`
- Add `publised` to config variables in workflow file.
- Add `main_image` optional attribute.

**Note** : The work is in progress. ⚡🚧💻
1 change: 1 addition & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ inputs:
tags:
description: "Tags to include with post"
required: true
default: ""
outputs:
time:
description: "The time post is created"
Expand Down
6 changes: 2 additions & 4 deletions 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.

4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (payload.action == "published") {
},
});

console.log(data);
core.info("Publishing post on DEV...");

// Creating POST request to DEV.to API
axios
Expand All @@ -37,7 +37,7 @@ if (payload.action == "published") {
},
})
.then((data) => {
console.log(data);
// console.log(data);
console.log(`Post has been published here is the URL - ${data.url}`);
})
.catch((err) => core.setFailed(err));
Expand Down

0 comments on commit b68ec69

Please sign in to comment.