-
Notifications
You must be signed in to change notification settings - Fork 7
/
action.yaml
83 lines (83 loc) · 2.47 KB
/
action.yaml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Copyright 2024 Canonical Ltd.
# See LICENSE file for licensing details.
name: Upload Charm Docs
description: Upload charm documentation to charmhub
author: David Andersson
inputs:
dry_run:
description: |
If enabled, only log the changes that would be made.
default: false
required: false
type: boolean
delete_topics:
description: |
Whether to delete topics from the documentation server if they are no
longer needed.
default: true
required: false
type: boolean
discourse_host:
description: The base path(hostname) to the discourse server.
required: true
type: string
discourse_api_username:
description: |
The discourse API username to use for interactions with the server.
required: true
type: string
discourse_api_key:
description: |
The discourse API key to use for interactions with the server.
required: true
type: string
discourse_category_id:
description: The category identifier to use on discourse for all topics.
default: 41
required: false
type: integer
github_token:
description: |
The github access token (secrets.GITHUB_TOKEN) to create pull request on Github and retrieve
the current documentation.
required: true
type: string
base_branch:
description: |
The name of the base branch for the repository.
default: main
required: false
type: string
commit_sha:
description: |
The SHA of the commit to be used when running the action. If not provided, it falls back to
the pull request head SHA or (if outside of a PR) to the value of the environment
variable GITHUB_SHA.
required: false
type: string
charm_dir:
description: |
Relative name of the directory where the metadata.yaml or charmcraft.yaml files are located
if they are not in the root directory of the repository. The docs directory is also located
under this directory.
default: ''
required: false
type: string
outputs:
index_url:
description: |
A JSON map with the urls and the actions that have been taken against
them.
topics:
description: |
A JSON map with the urls and the actions that have been taken against
them.
pr_link:
description: |
A link of the community contribution PR.
pr_action:
description: |
A description of which actions for the PR has been taken among created, closed and updated.
runs:
using: docker
image: Dockerfile