Custom heading
Source of watermarkhu/mkdocstrings-github-fixture@latest
 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
name: 'Root Level Action'
description: 'A comprehensive root-level GitHub Action for testing documentation generation'
author: 'mkdocstrings-github test fixture'

branding:
  icon: 'package'
  color: 'blue'

inputs:
  input-string:
    description: 'A string input parameter'
    required: true
    default: 'default-value'
  input-number:
    description: 'A numeric input parameter'
    required: false
    default: '42'
  input-boolean:
    description: 'A boolean input parameter'
    required: false
    default: 'false'
  input-choice:
    description: 'A choice input parameter'
    required: false
    default: 'option1'
  input-multiline:
    description: |
      A multiline input parameter description
      that spans multiple lines for testing
      complex documentation scenarios
    required: false

outputs:
  output-string:
    description: 'A string output from the action'
    value: 'result-value'
  output-number:
    description: 'A numeric output from the action'
    value: 123
  output-json:
    description: 'A JSON output containing complex data'
    value: '{"key": "value", "number": 456}'

runs:
  using: 'composite'
  steps:
    - name: Execute action logic
      run: |
        echo "input-string=${{ inputs.input-string }}" >> $GITHUB_OUTPUT
        echo "output-number=123" >> $GITHUB_OUTPUT
        echo "output-json={\"key\": \"value\", \"number\": 456}" >> $GITHUB_OUTPUT
      shell: bash