Skip to content

Commit

Permalink
chore: persist creds
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Oct 3, 2024
1 parent 6774222 commit 7469fe3
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/start-program.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,32 @@ on:
type: string

jobs:
run-npm-start:
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: npm install
run: bun install

- name: Run npm start
run: npm start "${{ github.event.inputs.input_string }}"
- 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
NON_INTERACTIVE: "true"
GITHUB_TOKEN: ${{ secrets.UBIQUITY_OS_CONFIGURATION_AGENT_PAT }}

0 comments on commit 7469fe3

Please sign in to comment.