diff options
author | Maxim Yurchuk <maxim-yurchuk@ydb.tech> | 2024-10-17 14:04:43 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-17 14:04:43 +0300 |
commit | 972d00133a50810826d3ee1c6f50326ba3aa9eca (patch) | |
tree | 7fdeebebb5686408f2e81bb686f8dbff784d3a0b | |
parent | be635ce5bec9b276393ef619c083e74aaa509e90 (diff) | |
download | ydb-972d00133a50810826d3ee1c6f50326ba3aa9eca.tar.gz |
Correct mime type for err/out in ya make tests results (#10385)
-rw-r--r-- | .github/actions/s3cmd/action.yml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/.github/actions/s3cmd/action.yml b/.github/actions/s3cmd/action.yml index 82bc31bf61..e2a4e7ca63 100644 --- a/.github/actions/s3cmd/action.yml +++ b/.github/actions/s3cmd/action.yml @@ -35,6 +35,13 @@ runs: host_base = storage.yandexcloud.net host_bucket = %(bucket)s.storage.yandexcloud.net EOF + + # specify mime type for correct content-type in s3cmd sync + # we want to .out/.err files treat as text + MIME_TYPES_LINE="text/plain out err log" + MIME_TYPES_FILE='/etc/mime.types' + # add if not exists + sudo bash -c "grep -qF -- '$MIME_TYPES_LINE' '$MIME_TYPES_FILE' || echo '$MIME_TYPES_LINE' >> '$MIME_TYPES_FILE'" env: s3_key_id: ${{ inputs.s3_key_id }} s3_secret_access_key: ${{ inputs.s3_key_secret }} |