fix: node -> composite

This commit is contained in:
Alpha Nerd 2026-05-11 15:20:47 +02:00
parent cb165b224e
commit dd695e9df9
Signed by: alpha-nerd
SSH key fingerprint: SHA256:QkkAgVoYi9TQ0UKPkiKSfnerZy2h4qhi3SVPXJmBN+M

View file

@ -49,5 +49,44 @@ inputs:
default: "https://chat.nomyo.ai/api"
runs:
using: "node20"
main: "dist/index.mjs"
using: "composite"
steps:
- name: Install Bun
shell: bash
run: |
if ! command -v bun >/dev/null 2>&1; then
curl -fsSL https://bun.sh/install | bash
fi
echo "$HOME/.bun/bin" >> "$GITHUB_PATH"
- name: Install opencode
shell: bash
run: |
if ! command -v opencode >/dev/null 2>&1; then
curl -fsSL https://opencode.ai/install | bash
fi
echo "$HOME/.opencode/bin" >> "$GITHUB_PATH"
- name: Install action dependencies
shell: bash
working-directory: ${{ github.action_path }}
run: |
export PATH="$HOME/.bun/bin:$PATH"
bun install --frozen-lockfile
- name: Run opencode
shell: bash
env:
NOMYO_API_KEY: ${{ inputs.nomyo_api_key }}
NOMYO_API_URL: ${{ inputs.nomyo_api_url }}
MODEL: ${{ inputs.model }}
AGENT: ${{ inputs.agent }}
SHARE: ${{ inputs.share }}
PROMPT: ${{ inputs.prompt }}
FORGEJO_API_URL: ${{ inputs.forgejo_api_url }}
FORGEJO_TOKEN: ${{ inputs.forgejo_token }}
MENTIONS: ${{ inputs.mentions }}
VARIANT: ${{ inputs.variant }}
run: |
export PATH="$HOME/.bun/bin:$HOME/.opencode/bin:$PATH"
bun run "${{ github.action_path }}/index.ts"