Skip to content
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
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ Sync markdown docs to Confluence using mark
| `docs-path` | <p>Folder containing markdown files</p> | `false` | `.` |
| `exclude-dir` | <p>Exclude the markdown files inside this path</p> | `false` | `""` |
| `changed-only` | <p>Sync only changed markdown files</p> | `false` | `false` |
| `dry-run` | <p>If true this will not push any chnages, but to log the change it would have made</p> | `false` | `false` |
| `dry-run` | <p>If true this will not push any changes, but to log the change it would have made</p> | `false` | `false` |
| `confluence-url` | <p>The destination Confluence url</p> | `true` | `""` |
| `space` | <p>Specific Confluence space to pushlish to</p> | `false` | `""` |
| `parent` | <p>Specific Confluence parent to pushlish to</p> | `false` | `""` |
| `space` | <p>Specific Confluence space to publish to</p> | `false` | `""` |
| `parent` | <p>Specific Confluence parent to publish to</p> | `false` | `""` |
| `drop-h1` | <p>Don't include the first H1 heading in Confluence output</p> | `false` | `false` |
| `strip-linebreaks` | <p>Remove linebreaks inside of tags, to accommodate non-standard Confluence behavior</p> | `false` | `false` |
| `title-from-h1` | <p>Extract page title from a leading H1 heading. If no H1 heading on a page exists, then title must be set in the page metadata</p> | `false` | `false` |
| `title-from-filename` | <p>Use the filename (without extension) as the Confluence page title if no explicit page title is set in the metadata</p> | `false` | `false` |
| `log-level` | <p>set the log level. Possible values: TRACE, DEBUG, INFO, WARNING, ERROR, FATAL. (default: 'info')</p> | `false` | `info` |


## Runs
Expand Down Expand Up @@ -79,7 +80,7 @@ This action is a `docker` action.
# Default: false

dry-run:
# If true this will not push any chnages, but to log the change it would have made
# If true this will not push any changes, but to log the change it would have made
#
# Required: false
# Default: false
Expand All @@ -91,13 +92,13 @@ This action is a `docker` action.
# Default: ""

space:
# Specific Confluence space to pushlish to
# Specific Confluence space to publish to
#
# Required: false
# Default: ""

parent:
# Specific Confluence parent to pushlish to
# Specific Confluence parent to publish to
#
# Required: false
# Default: ""
Expand Down Expand Up @@ -125,6 +126,12 @@ This action is a `docker` action.
#
# Required: false
# Default: false

log-level:
# set the log level. Possible values: TRACE, DEBUG, INFO, WARNING, ERROR, FATAL. (default: 'info')
#
# Required: false
# Default: info
```
<!-- action-docs-all source="action.yml" project="devwithkrishna/markdown2confluence" version="latest" -->

Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ inputs:
description: "Use the filename (without extension) as the Confluence page title if no explicit page title is set in the metadata"
required: false
default: "false"
log-level:
description: "set the log level. Possible values: TRACE, DEBUG, INFO, WARNING, ERROR, FATAL. (default: 'info')"
required: false
default: "info"

runs:
using: "docker"
Expand All @@ -70,3 +74,4 @@ runs:
MARK_STRIP_LINEBREAKS: ${{ inputs.strip-linebreaks }}
MARK_TITLE_FROM_H1: ${{ inputs.title-from-h1 }}
MARK_TITLE_FROM_FILENAME: ${{ inputs.title-from-filename }}
MARK_LOG_LEVEL: ${{ inputs.log-level }}
4 changes: 4 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ STRIP_LINEBREAKS="${MARK_STRIP_LINEBREAKS:-false}"
TITLE_FROM_H1="${MARK_TITLE_FROM_H1:-false}"
TITLE_FROM_FILENAME="${MARK_TITLE_FROM_FILENAME:-false}"

LOG_LEVEL="${MARK_LOG_LEVEL:-info}"



echo "========================================="
Expand All @@ -34,6 +36,7 @@ echo "DROP_H1 : ${DROP_H1}"
echo "STRIP_LINEBREAKS : ${STRIP_LINEBREAKS}"
echo "TITLE_FROM_H1 : ${TITLE_FROM_H1}"
echo "TITLE_FROM_FILENAME : ${TITLE_FROM_FILENAME}"
echo "LOG_LEVEL : ${LOG_LEVEL}"
echo "========================================="

# Validate mark binary
Expand Down Expand Up @@ -101,6 +104,7 @@ sync_file() {
-p "${MARK_PASSWORD}"
-b "${CONFLUENCE_URL}"
-u "${MARK_USERNAME}"
--log-level "${LOG_LEVEL^^}"
)

# Use environment variable if set, otherwise fall back to file metadata
Expand Down
Loading