idk
This commit is contained in:
+22
-17
@@ -20,25 +20,30 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
default: "10"
|
default: "10"
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: "node24"
|
||||||
|
main: "entry.ts"
|
||||||
|
post-if: "always()"
|
||||||
|
|
||||||
# BOT_TOKEN, OLLAMA_HOST, and GITEA_URL must be set as env vars by the consuming workflow.
|
# BOT_TOKEN, OLLAMA_HOST, and GITEA_URL must be set as env vars by the consuming workflow.
|
||||||
# GITHUB_EVENT_NAME, GITHUB_EVENT_PATH, and GITHUB_REPOSITORY are set by the runner.
|
# GITHUB_EVENT_NAME, GITHUB_EVENT_PATH, and GITHUB_REPOSITORY are set by the runner.
|
||||||
|
|
||||||
runs:
|
# runs:
|
||||||
using: composite
|
# using: composite
|
||||||
steps:
|
# steps:
|
||||||
- uses: oven-sh/setup-bun@v2
|
# - uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
- name: Install dependencies
|
# - name: Install dependencies
|
||||||
shell: bash
|
# shell: bash
|
||||||
working-directory: ${{ github.action_path }}
|
# working-directory: ${{ github.action_path }}
|
||||||
run: bun install --frozen-lockfile
|
# run: bun install --frozen-lockfile
|
||||||
|
|
||||||
- name: Run shockbot
|
# - name: Run shockbot
|
||||||
shell: bash
|
# shell: bash
|
||||||
working-directory: ${{ github.action_path }}
|
# working-directory: ${{ github.action_path }}
|
||||||
env:
|
# env:
|
||||||
INPUT_PROMPT: ${{ inputs.prompt }}
|
# INPUT_PROMPT: ${{ inputs.prompt }}
|
||||||
INPUT_MODEL: ${{ inputs.model }}
|
# INPUT_MODEL: ${{ inputs.model }}
|
||||||
INPUT_CONTEXT_WINDOW: ${{ inputs.context_window }}
|
# INPUT_CONTEXT_WINDOW: ${{ inputs.context_window }}
|
||||||
INPUT_MAX_TOOL_CALLS: ${{ inputs.max_tool_calls }}
|
# INPUT_MAX_TOOL_CALLS: ${{ inputs.max_tool_calls }}
|
||||||
run: bun run entry.ts
|
# run: bun run entry.ts
|
||||||
|
|||||||
Reference in New Issue
Block a user