-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
40 lines (38 loc) · 1.07 KB
/
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
37
38
39
40
name: find-matching-issues
description: "Find Matching Issues"
inputs:
token:
description: "The github token (defaults to the one in github context)"
required: false
default: ${{ github.token }}
repository:
description: "The repository to search in defaults to the one in github context"
required: false
default: ${{ github.repository }}
query:
description: "The search query to use"
required: true
format:
description: "The format of the output: simple|markdown|json|jsonl, simple is default"
required: false
default: "simple"
outputs:
path:
description: "The path to the file containing the issue list"
value: ${{ steps.find_issue.outputs.path }}
branding:
color: blue
icon: crosshair
runs:
using: composite
steps:
- name: find
id: find_issue
shell: bash
env:
SEARCH_QUERY: "${{ inputs.query }}"
OUTPUT_FORMAT: "${{ inputs.format }}"
GITHUB_TOKEN: "${{ inputs.token }}"
GITHUB_REPO: "${{ inputs.repository }}"
run: |
bash ${{ github.action_path }}/main.sh