Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

chore: implement information parameters action #16

Merged
merged 3 commits into from
Feb 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# action-confluence-sync

action-confluence-sync for project
Action confluence sync that can be used to publish markdown documents to confluence. This action is a thin wrapper around the mark See the action.yaml file for details of required inputs.

## Requirements

Expand Down Expand Up @@ -70,6 +70,31 @@ jobs:
files: '${{ steps.changed-files.outputs.all_changed_files }}'
```

<!-- action-docs-inputs -->

## Inputs

| parameter | description | required | default |
| ------------------- | ---------------------- | -------- | ------- |
| confluence_url | base url of confluence | `true` | |
| confluence_username | confluence username | `true` | |
| confluence_token | token of user | `true` | |
| files | files to sync | `true` | |

<!-- action-docs-inputs -->

<!-- action-docs-outputs -->

<!-- action-docs-outputs -->

<!-- action-docs-runs -->

## Runs

This action is an `composite` action.

<!-- action-docs-runs -->

## Help

**Got a question?**
Expand Down
2 changes: 2 additions & 0 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,13 @@ tasks:
desc: Generate Readme
silent: true
cmds:
- cmd: action-docs --update-readme docs/include/actions.md
- >-
gomplate --file {{.README_TEMPLATE}}
--out {{.README_FILE}}
--datasource config={{.README_YAML}}
--datasource includes={{.README_INCLUDES}}
- task: prettier

prettier:
run: once
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: hadenlabs-action-confluence-sync'
description: 'sync files markdown using mark'
description: 'Action confluence sync that can be used to publish markdown documents to confluence.'
author: 'hadenlabs'
inputs:
confluence_url:
Expand Down
24 changes: 24 additions & 0 deletions docs/include/actions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<!-- action-docs-inputs -->

## Inputs

| parameter | description | required | default |
| ------------------- | ---------------------- | -------- | ------- |
| confluence_url | base url of confluence | `true` | |
| confluence_username | confluence username | `true` | |
| confluence_token | token of user | `true` | |
| files | files to sync | `true` | |

<!-- action-docs-inputs -->

<!-- action-docs-outputs -->

<!-- action-docs-outputs -->

<!-- action-docs-runs -->

## Runs

This action is an `composite` action.

<!-- action-docs-runs -->
6 changes: 5 additions & 1 deletion provision/generators/README.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ requirements: |-
# Short description of this project
description: |-

action-confluence-sync for project
Action confluence sync that can be used to publish markdown documents to confluence. This action is a thin wrapper around the mark
See the action.yaml file for details of required inputs.

include:
- 'docs/include/actions.md'

usages:
- docs/usage.md