Skip to content

Commit 9862f08

Browse files
committed
Use github variables to control backend environment
1 parent f1c308b commit 9862f08

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:
@@ -93,3 +99,5 @@ jobs:
9399
pdm run chipflow silicon submit --wait $DRY | cat
94100
env:
95101
CHIPFLOW_API_KEY: ${{ secrets.CHIPFLOW_API_KEY}}
102+
CHIPFLOW_API_ORIGIN: ${{ inputs.CHIPFLOW_API_ORIGIN }}
103+
CHIPFLOW_BACKEND_VERSION: ${{ inputs.CHIPFLOW_BACKEND_VERSION }}

0 commit comments

Comments
 (0)