-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
36 lines (36 loc) · 990 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: 'Generate confluence page'
description: 'Render markdown file into Confluence page'
inputs:
source:
description: 'source file to be render'
required: true
default: 'README.md'
url:
description: 'confluence url'
required: true
conf-account:
description: 'confluence account'
required: true
conf-api-key:
description: 'confluence api key'
required: true
runs:
using: "composite"
steps:
- name: Set Up Go
uses: actions/setup-go@v3
with:
go-version: '^1.13.1'
- name: Set Up Mark Tool
run: go install github.com/kovetskiy/mark@latest
shell: bash
- name: Generate Confluence page
run: |
mark -u "$CONFLUENCE_ACCOUNT" -p "$CONFLUENCE_API_KEY" -b "$URL" -f "$SOURCE" -k
shell: bash
env:
SOURCE: ${{ inputs.source }}
URL: ${{ inputs.url }}
CONFLUENCE_ACCOUNT: ${{ inputs.conf-account }}
CONFLUENCE_API_KEY: ${{ inputs.conf-api-key }}
MARK_MERMAID_PROVIDER: mermaid-go