Skip to content

Commit aa6a06f

Browse files
committed
Use github variables to control backend environment
1 parent 8afbdea commit aa6a06f

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/main.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,8 @@ jobs:
4545

4646
test-submit:
4747
uses: ./.github/workflows/test-examples.yml
48+
with:
49+
CHIPFLOW_API_ORIGIN: ${{ vars.CHIPFLOW_API_ORIGIN }}
50+
CHIPFLOW_BACKEND_VERSION: ${{ vars.CHIPFLOW_BACKEND_VERSION }}
4851
secrets:
4952
CHIPFLOW_API_KEY: ${{ secrets.CHIPFLOW_API_KEY}}

.github/workflows/test-examples.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
secrets:
66
CHIPFLOW_API_KEY:
77
required: true
8+
inputs:
9+
CHIPFLOW_API_ORIGIN:
10+
required: true
11+
CHIPFLOW_BACKEND_VERSION:
12+
required: true
13+
814

915
jobs:
1016
test-submit:
@@ -92,3 +98,5 @@ jobs:
9298
pdm run chipflow silicon submit --wait $DRY | cat
9399
env:
94100
CHIPFLOW_API_KEY: ${{ secrets.CHIPFLOW_API_KEY}}
101+
CHIPFLOW_API_ORIGIN: ${{ inputs.CHIPFLOW_API_ORIGIN }}
102+
CHIPFLOW_BACKEND_VERSION: ${{ inputs.CHIPFLOW_BACKEND_VERSION }}

0 commit comments

Comments
 (0)