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:
Vladimir Istyufeev
2024-04-04 12:22:18 +04:00
committed by GitHub
parent 3836376965
commit ebdca15c19
5 changed files with 40 additions and 43 deletions
+3 -3
View File
@@ -125,10 +125,10 @@ default:
- cp $FL_FORKLIFT_CONFIG ~/.forklift/config.toml
- shopt -s expand_aliases
- export PATH=$PATH:$(pwd)
- |
- >
if [ "$FORKLIFT_BYPASS" != "true" ]; then
echo "FORKLIFT_BYPASS not set, creating alias cargo='forklift cargo'"
alias cargo="forklift cargo"
echo "FORKLIFT_BYPASS not set, creating alias cargo='forklift cargo'";
alias cargo="forklift cargo";
fi
#
- echo "FL_FORKLIFT_VERSION ${FL_FORKLIFT_VERSION}"