Skip to content

Commit 11d4c49

Browse files
bench: avoid using heredoc in gcloud command (#554)
The GitHub Actions script is complaining about the heredoc, so just get rid of it instead of debugging why: warning: here-document at line 5 delimited by end-of-file (wanted `EOF') ERROR: (gcloud.batch.jobs.submit) Unable to parse config file: Extra data: line 63 column 3 (char 2012) Signed-off-by: Spencer Schrock <[email protected]>
1 parent 2e77c5f commit 11d4c49

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/bench.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,9 @@ jobs:
9797
workload_identity_provider: projects/306323169285/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider
9898
service_account: 'model-transparency-gha@sigstore-infra-playground.iam.gserviceaccount.com'
9999
- run: |
100+
envsubst '$TAG' < benchmarks/cloud_batch.json > benchmarks/final_config.json
100101
gcloud batch jobs submit \
101102
--job-prefix=bench \
102103
--project sigstore-infra-playground \
103104
--location us-central1 \
104-
--config - <<EOF
105-
$(envsubst '$TAG' < benchmarks/cloud_batch.json)
106-
EOF
105+
--config benchmarks/final_config.json

0 commit comments

Comments
 (0)