idk
This commit is contained in:
+22
-17
@@ -20,25 +20,30 @@ inputs:
|
||||
required: false
|
||||
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.
|
||||
# GITHUB_EVENT_NAME, GITHUB_EVENT_PATH, and GITHUB_REPOSITORY are set by the runner.
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- uses: oven-sh/setup-bun@v2
|
||||
# runs:
|
||||
# using: composite
|
||||
# steps:
|
||||
# - uses: oven-sh/setup-bun@v2
|
||||
|
||||
- name: Install dependencies
|
||||
shell: bash
|
||||
working-directory: ${{ github.action_path }}
|
||||
run: bun install --frozen-lockfile
|
||||
# - name: Install dependencies
|
||||
# shell: bash
|
||||
# working-directory: ${{ github.action_path }}
|
||||
# run: bun install --frozen-lockfile
|
||||
|
||||
- name: Run shockbot
|
||||
shell: bash
|
||||
working-directory: ${{ github.action_path }}
|
||||
env:
|
||||
INPUT_PROMPT: ${{ inputs.prompt }}
|
||||
INPUT_MODEL: ${{ inputs.model }}
|
||||
INPUT_CONTEXT_WINDOW: ${{ inputs.context_window }}
|
||||
INPUT_MAX_TOOL_CALLS: ${{ inputs.max_tool_calls }}
|
||||
run: bun run entry.ts
|
||||
# - name: Run shockbot
|
||||
# shell: bash
|
||||
# working-directory: ${{ github.action_path }}
|
||||
# env:
|
||||
# INPUT_PROMPT: ${{ inputs.prompt }}
|
||||
# INPUT_MODEL: ${{ inputs.model }}
|
||||
# INPUT_CONTEXT_WINDOW: ${{ inputs.context_window }}
|
||||
# INPUT_MAX_TOOL_CALLS: ${{ inputs.max_tool_calls }}
|
||||
# run: bun run entry.ts
|
||||
|
||||
Reference in New Issue
Block a user