Skip to content

Commit 166e047

Browse files
fix: pass env as object not array to Vercel API (#492)
1 parent 525083a commit 166e047

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

.github/workflows/preview.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ jobs:
3636
project: $project,
3737
gitSource: {type: "github", repoId: $repoId, ref: $ref},
3838
target: "preview",
39-
env: [
40-
{key: "INTEGRATIONS_REPO", value: $integrations_repo, type: "plain"},
41-
{key: "INTEGRATIONS_BRANCH", value: $integrations_branch, type: "plain"}
42-
]
39+
env: {INTEGRATIONS_REPO: $integrations_repo, INTEGRATIONS_BRANCH: $integrations_branch}
4340
}')
4441
RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \
4542
"https://api.vercel.com/v13/deployments?teamId=$VERCEL_TEAM_ID" \

0 commit comments

Comments
 (0)