Skip to content

Commit fcd5269

Browse files
committed
fix: environment variables dont interpolate with single quotes
This caused the triggered buildkite run to be on the literal string `"$GITHUB_REF_NAME"` instead of the value of the environment variable. Fixes: cfc8040 Signed-off-by: Patrick Roy <[email protected]>
1 parent cfc8040 commit fcd5269

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/trigger_ab_tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
curl -X POST https://api.buildkite.com/v2/organizations/firecracker/pipelines/performance-a-b-tests/builds \
1515
-H 'Content-Type: application/json' \
1616
-H 'Authorization: Bearer ${{ secrets.BUILDKITE_TOKEN }}' \
17-
-d '{
18-
"commit": "HEAD",
19-
"branch": "$GITHUB_REF_NAME",
20-
"env": {
21-
"REVISION_A": "${{ github.event.before }}",
22-
"REVISION_B": "${{ github.event.after }}"
17+
-d "{
18+
\"commit\": \"HEAD\",
19+
\"branch\": \"$GITHUB_REF_NAME\",
20+
\"env\": {
21+
\"REVISION_A\": \"${{ github.event.before }}\",
22+
\"REVISION_B\": \"${{ github.event.after }}\"
2323
}
24-
}'
24+
}"

0 commit comments

Comments
 (0)