This repository has been archived by the owner on Aug 29, 2024. It is now read-only.
Delegated Compute Workflow #383
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
name: Delegated Compute Workflow | |
on: | |
workflow_dispatch: | |
inputs: | |
eventName: | |
description: "Event ID" | |
required: true | |
issueOwner: | |
description: "Organization that owns the repo" | |
required: true | |
issueRepository: | |
description: "Repository name" | |
required: true | |
issueNumber: | |
description: "Issue number" | |
required: true | |
collaborators: | |
description: "Repository collaborators" | |
required: true | |
installationId: | |
description: "Installation ID" | |
required: true | |
jobs: | |
handler-job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: print event name | |
run: echo ${{ inputs.eventName }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20.10.0" | |
- name: Calling action | |
uses: ./ # Uses an action in the root directory | |
id: callback | |
env: | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
X25519_PRIVATE_KEY: ${{ secrets.X25519_PRIVATE_KEY }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }} | |
SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | |
UBIQUIBOT_APP_ID: ${{ secrets.UBIQUIBOT_APP_ID }} | |
UBIQUIBOT_APP_PRIVATE_KEY: ${{ secrets.UBIQUIBOT_APP_PRIVATE_KEY }} | |
# - name: Get Bot Token | |
# uses: tibdex/[email protected] | |
# id: get_installation_token | |
# with: | |
# app_id: ${{ secrets.UBIQUIBOT_APP_ID }} | |
# private_key: ${{ secrets.UBIQUIBOT_APP_PRIVATE_KEY }} | |
# - name: Post comment to the original repo as Bot | |
# uses: actions/github-script@v6 | |
# with: | |
# github-token: ${{ steps.get_installation_token.outputs.token }} | |
# script: | | |
# await github.rest.issues.createComment({ | |
# owner: "${{ inputs.issueOwner }}", | |
# repo: "${{ inputs.issueRepository }}", | |
# issue_number: "${{ inputs.issueNumber }}", | |
# body: `${{ steps.callback.outputs.result }}` | |
# }); |