mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 03:31:10 +00:00
Convince GitLab not to crop collapsed multiline strings (#3971)
Use of `- >` instead of `- |` workarounds GitLab quirk when it crops collapsed multiline `script:` section commands in its CI job logs. This PR also fixes `- |` based `script:` steps to behave properly after `- >` conversion. Resolves https://github.com/paritytech/ci_cd/issues/972.
This commit is contained in:
committed by
GitHub
parent
3836376965
commit
ebdca15c19
@@ -113,17 +113,17 @@ trigger_workflow:
|
||||
artifacts: true
|
||||
script:
|
||||
- echo "Triggering workflow"
|
||||
- |
|
||||
- >
|
||||
for benchmark in $(ls charts/*.json); do
|
||||
export bencmark_name=$(basename $benchmark)
|
||||
echo "Benchmark: $bencmark_name"
|
||||
export benchmark_dir=$(echo $bencmark_name | sed 's/\.json//')
|
||||
export benchmark_name=$(basename $benchmark);
|
||||
echo "Benchmark: $benchmark_name";
|
||||
export benchmark_dir=$(echo $benchmark_name | sed 's/\.json//');
|
||||
curl -q -X POST \
|
||||
-H "Accept: application/vnd.github.v3+json" \
|
||||
-H "Authorization: token $GITHUB_TOKEN" \
|
||||
https://api.github.com/repos/paritytech/${CI_PROJECT_NAME}/actions/workflows/subsystem-benchmarks.yml/dispatches \
|
||||
-d '{"ref":"refs/heads/master","inputs":{"benchmark-data-dir-path":"'$benchmark_dir'","output-file-path":"'$bencmark_name'"}}'
|
||||
sleep 300
|
||||
https://api.github.com/repos/paritytech/${CI_PROJECT_NAME}/actions/workflows/subsystem-benchmarks.yml/dispatches \
|
||||
-d "{\"ref\":\"refs/heads/master\",\"inputs\":{\"benchmark-data-dir-path\":\"$benchmark_dir\",\"output-file-path\":\"$benchmark_name\"}}";
|
||||
sleep 300;
|
||||
done
|
||||
allow_failure: true
|
||||
|
||||
|
||||
Reference in New Issue
Block a user