minor: ai agent 支持环境变量配置切换api和agent #6061
Workflow file for this run
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: "[BKLog] Web" | |
defaults: | |
run: | |
working-directory: bklog | |
on: | |
push: | |
paths: | |
- 'bklog/web/**' | |
pull_request: | |
paths: | |
- 'bklog/web/**' | |
schedule: | |
- cron: "0 10 * * *" | |
# https://github.com/actions/checkout/issues/1590 | |
env: | |
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true | |
jobs: | |
run: | |
# runs-on: ubuntu-20.04 | |
runs-on: self-hosted | |
env: | |
OS: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v2.2.0 | |
with: | |
node-version: 18.18.0 | |
- name: Run build web | |
run: | | |
cd web | |
npm install --legacy-peer-deps | |
npm run build |