forked from EresDevOrg/personal-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.44 KB
/
compute.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
41
42
43
44
45
46
47
name: "@ubiquity-os-marketplace/personal-agent"
on:
workflow_dispatch:
inputs:
stateId:
description: "State Id"
eventName:
description: "Event Name"
eventPayload:
description: "Event Payload"
settings:
description: "Settings"
ref:
description: "Ref"
jobs:
compute:
name: "LLM Reply"
runs-on: ubuntu-latest
permissions: write-all
environment: ${{ github.ref == 'refs/heads/main' && 'main' || 'development' }}
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: "20.10.0"
- name: Install tree package
run: sudo apt-get update && sudo apt-get install -y tree
- name: Setup github username and email
run: git config --global user.name ${{github.actor}} && git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
- name: execute directive
run: node ./dist/index.js
id: plugin-personal-agent
env:
PERSONAL_AGENT_PAT_CLASSIC: ${{ secrets.PERSONAL_AGENT_PAT_CLASSIC }}
PLUGIN_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
USERNAME: ${{ github.actor }}
EMAIL: "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"