generated from ubiquity/ts-template
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (34 loc) · 1.18 KB
/
start-program.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
name: Start Program
on:
workflow_dispatch:
inputs:
input_string:
description: "Input string to pass to the program"
required: true
type: string
jobs:
run-start:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.UBIQUITY_OS_CONFIGURATION_AGENT_PAT }}
persist-credentials: true # Ensure credentials are persisted for subsequent steps
- name: Configure Git to use PAT
run: |
git config --global url."https://${{ secrets.UBIQUITY_OS_CONFIGURATION_AGENT_PAT }}:@github.com/".insteadOf "https://github.com/"
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20.10.0"
cache: "npm"
- name: Install dependencies
run: bun install
- name: Run start script
run: bun start "${{ github.event.inputs.input_string }}"
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
INPUT_STRING: ${{ github.event.inputs.input_string }}
NON_INTERACTIVE: "true"
GITHUB_TOKEN: ${{ secrets.UBIQUITY_OS_CONFIGURATION_AGENT_PAT }}