Skip to content

Commit 3ffa7bb

Browse files
gaoyu06cursoragent
andcommitted
fix(ci): repair workflow YAML broken by unindented python heredocs
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent c1a94e6 commit 3ffa7bb

1 file changed

Lines changed: 1 addition & 20 deletions

File tree

.github/workflows/ci-release.yml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -329,26 +329,7 @@ jobs:
329329
upload_oss() {
330330
local path="$1"
331331
local key="$2"
332-
ARTIFACT_PATH="$path" OBJECT_KEY="$key" python3 - <<'PY'
333-
import os
334-
import boto3
335-
336-
endpoint = os.environ["QINIU_S3_ENDPOINT"].rstrip("/")
337-
cdn = os.environ["QINIU_CDN_BASE_URL"].rstrip("/")
338-
bucket = os.environ["QINIU_BUCKET"]
339-
key = os.environ["OBJECT_KEY"]
340-
path = os.environ["ARTIFACT_PATH"]
341-
342-
client = boto3.client(
343-
"s3",
344-
endpoint_url=endpoint,
345-
aws_access_key_id=os.environ["QINIU_ACCESS_KEY"],
346-
aws_secret_access_key=os.environ["QINIU_SECRET_KEY"],
347-
region_name=os.environ.get("QINIU_S3_REGION") or "ap-southeast-1",
348-
)
349-
client.upload_file(path, bucket, key)
350-
print(f"{cdn}/{key}")
351-
PY
332+
ARTIFACT_PATH="$path" OBJECT_KEY="$key" python3 -c "import os,boto3; e=os.environ['QINIU_S3_ENDPOINT'].rstrip('/'); c=os.environ['QINIU_CDN_BASE_URL'].rstrip('/'); b=os.environ['QINIU_BUCKET']; k=os.environ['OBJECT_KEY']; p=os.environ['ARTIFACT_PATH']; client=boto3.client('s3', endpoint_url=e, aws_access_key_id=os.environ['QINIU_ACCESS_KEY'], aws_secret_access_key=os.environ['QINIU_SECRET_KEY'], region_name=os.environ.get('QINIU_S3_REGION') or 'ap-southeast-1'); client.upload_file(p,b,k); print(f'{c}/{k}')"
352333
}
353334
354335
jar_name="$(basename "$artifact_path")"

0 commit comments

Comments
 (0)