Skip to content

Commit

Permalink
FIX: update action inputs definition
Browse files Browse the repository at this point in the history
  • Loading branch information
ommyjay committed Apr 1, 2022
1 parent 27a812b commit e701d54
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 9 deletions.
29 changes: 23 additions & 6 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,31 @@ name: 'Blogs Cross-Post Action for Teams'
description: 'GitHub action for teams to easily cross-post blog article on dev.to, Hashnode and Medium.'
author: '@ommyjay'
inputs:
milliseconds:
title:
required: true
description: 'input description here'
default: 'default value if applicable'
who-to-greet:
description: 'article title'
body_markdown:
required: true
description: 'input description here'
default: 'default value if applicable'
description: 'article body'
tags:
required: false
description: 'article tags (comma separated)'
canonical_url:
required: false
description: 'article canonical url'
series:
required: false
description: 'article series'
published:
required: true
description: 'either to published the article or not'
default: 'false'
devto_organization_id:
required: true
description: 'dev to organization blog id'
devto_api_key:
required: true
description: 'author dev to api key'
runs:
using: 'node16'
main: 'dist/index.js'
2 changes: 1 addition & 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.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function run(): Promise<void> {
article: {
title: core.getInput('title'),
body_markdown: core.getInput('body_markdown'),
tags: [core.getInput('tags')],
tags: core.getInput('tags').split(','),
canonical_url: core.getInput('canonical_url'),
published: core.getInput('published'),
series: core.getInput('series'),
Expand Down

0 comments on commit e701d54

Please sign in to comment.