Skip to content

Commit dd8f830

Browse files
committed
.github/llm: Use ref input, replaces base/head-sha
Simplify calling by allowing users pass branch, tags, pull request numbers and SHA as input. Drop support to inputs.base-sha. Add inputs.prompt-extra to allow passing additional context, without overwriting the default prompt. Signed-off-by: Jorge Marques <jorge.marques@analog.com>
1 parent 985e369 commit dd8f830

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/llm.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,26 @@ name: LLM Agent
33
on:
44
workflow_dispatch:
55
inputs:
6-
base-sha:
7-
required: false
8-
type: string
9-
head-sha:
6+
ref:
7+
description: The branch, tag, PR number, or SHA to checkout
108
required: false
119
type: string
1210
run-id:
11+
description: Explicit workflow run to analyse, optional.
1312
required: false
1413
type: string
1514
prompt:
15+
description: Prompt to use, overwrites the default.
16+
required: false
17+
type: string
18+
default: ""
19+
prompt-extra:
20+
description: Extra prompt to concatenate.
1621
required: false
1722
type: string
1823
default: ""
1924
prompt-repository:
25+
description: Repository with LLM skills, overwrites the default.
2026
required: false
2127
type: string
2228
default: ""
@@ -44,10 +50,10 @@ jobs:
4450
ANTHROPIC_BASE_URL: ${{ secrets.ANTHROPIC_BASE_URL }}
4551
ANTHROPIC_AUTH_TOKEN: ${{ secrets.ANTHROPIC_AUTH_TOKEN }}
4652
with:
47-
base-sha: ${{ inputs.base-sha }}
48-
head-sha: ${{ inputs.head-sha }}
53+
ref: ${{ inputs.ref }}
4954
run-id: ${{ inputs.run-id }}
5055
prompt: ${{ inputs.prompt }}
56+
prompt-extra: ${{ inputs.prompt }}
5157
prompt-repository: ${{ inputs.prompt-repository }}
5258
model-small: ${{ inputs.model-small }}
5359
model-medium: ${{ inputs.model-medium }}

0 commit comments

Comments
 (0)