Skip to content

Commit

Permalink
fix: updated compute.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sshivaditya committed Oct 19, 2024
1 parent aa309dd commit a0c5ea5
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 11 deletions.
54 changes: 43 additions & 11 deletions .github/workflows/compute.yml
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}}
22 changes: 22 additions & 0 deletions .github/workflows/update-configuration.yml
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 }}

0 comments on commit a0c5ea5

Please sign in to comment.