fix script_block file path by removing the script_block_id from the path (#3162)
Some checks are pending
Run tests and pre-commit / Run tests and pre-commit hooks (push) Waiting to run
Run tests and pre-commit / Frontend Lint and Build (push) Waiting to run
Publish Fern Docs / run (push) Waiting to run

This commit is contained in:
Shuchang Zheng 2025-08-11 05:07:53 -07:00 committed by GitHub
parent 976d636b3a
commit ce60f2fbe1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -502,7 +502,7 @@ async def create_script_block(
# Step 4: Create script file for the block # Step 4: Create script file for the block
# Generate a unique filename for the block # Generate a unique filename for the block
file_name = f"{block_name}.skyvern" file_name = f"{block_name}.skyvern"
file_path = f"blocks/{script_block.script_block_id}/{file_name}" file_path = f"blocks/{file_name}"
# Create artifact and upload to S3 # Create artifact and upload to S3
artifact_id = await app.ARTIFACT_MANAGER.create_script_file_artifact( artifact_id = await app.ARTIFACT_MANAGER.create_script_file_artifact(