【发布时间】:2022-07-17 15:18:50
【问题描述】:
我正在尝试打印 API_RESPONSE 的值,但它会打印 "response is: "。 S3_RESPONSE 值已设置,但 API_RESPONSE 在 echo 命令中显示为空白。
- name: Check if certificate exists
id: check_certificate
run: |
API_RESPONSE=$(aws s3api head-object --bucket test-bucket-ssl --key fullchain.pem 2>&1 | tee true)
echo "::set-output name=S3_RESPONSE::$(echo $API_RESPONSE)"
echo "response is: ${API_RESPONSE}"
【问题讨论】:
标签: github-actions