forked from ubiquity-os-marketplace/command-ask
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aa309dd
commit a0c5ea5
Showing
2 changed files
with
65 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,50 @@ | ||
name: Update Manifest and Commit Changes | ||
name: "@ubiquity-os/command-ask" | ||
|
||
on: | ||
push: | ||
workflow_dispatch: | ||
inputs: | ||
stateId: | ||
description: "State Id" | ||
eventName: | ||
description: "Event Name" | ||
eventPayload: | ||
description: "Event Payload" | ||
settings: | ||
description: "Settings" | ||
authToken: | ||
description: "Auth Token" | ||
ref: | ||
description: "Ref" | ||
|
||
jobs: | ||
update-manifest: | ||
compute: | ||
name: "LLM Reply" | ||
runs-on: ubuntu-latest | ||
permissions: write-all | ||
env: | ||
SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | ||
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }} | ||
VOYAGEAI_API_KEY: ${{secrets.VOYAGEAI_API_KEY}} | ||
OPENAI_API_KEY: ${{secrets.OPENAI_API_KEY}} | ||
UBIQUITY_OS_APP_NAME: ${{secrets.UBIQUITY_OS_APP_NAME}} | ||
|
||
steps: | ||
- name: Update Manifest and Commit Changes | ||
uses: ubiquity-os/action-deploy-plugin@main | ||
- uses: actions/checkout@v4 | ||
|
||
- name: setup node | ||
uses: actions/setup-node@v4 | ||
with: | ||
manifestPath: ${{ github.workspace }}/manifest.json | ||
schemaPath: ${{ github.workspace }}/src/types/plugin-input.js | ||
pluginEntry: ${{ github.workspace }}/src/plugin.ts | ||
commitMessage: "chore: updated manifest.json and dist build" | ||
nodeVersion: "20.10.0" | ||
node-version: "20.10.0" | ||
|
||
- name: install dependencies | ||
run: yarn | ||
|
||
- name: execute directive | ||
run: npx tsx ./src/plugin.ts | ||
id: command-ask | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | ||
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }} | ||
VOYAGEAI_API_KEY: ${{secrets.VOYAGEAI_API_KEY}} | ||
OPENAI_API_KEY: ${{secrets.OPENAI_API_KEY}} | ||
UBIQUITY_OS_APP_NAME: ${{secrets.UBIQUITY_OS_APP_NAME}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Update Manifest and Commit Changes | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
|
||
|
||
jobs: | ||
update-manifest: | ||
name: "Update Manifest and Commit Changes" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Update Manifest and Commit Changes | ||
uses: ubiquity-os/action-deploy-plugin@main | ||
with: | ||
manifestPath: ${{ github.workspace }}/manifest.json | ||
schemaPath: ${{ github.workspace }}/src/types/plugin-input.js | ||
pluginEntry: ${{ github.workspace }}/src/plugin.ts | ||
commitMessage: "chore: updated manifest.json and dist build" | ||
nodeVersion: "20.10.0" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |