Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ inputs:
description: 'Path to file or tar archive (required if source-type=tar/file)'
required: false

content-type:
description: 'Object content type override (unspecified, text, binary, gzip, tar, tgz). If omitted, auto-detected from file extension and magic bytes.'
required: false

# Common inputs
setup-commands:
description: 'Newline-separated setup commands to run after agent installation'
Expand Down
116 changes: 90 additions & 26 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

11 changes: 9 additions & 2 deletions src/agent-deployer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,13 @@ async function deployTarAgent(
const tarPath = resolvePath(inputs.path);

// Upload tar file
const uploadResult = await uploadTarFile(client, tarPath, inputs.objectTtlDays, inputs.isPublic);
const uploadResult = await uploadTarFile(
client,
tarPath,
inputs.objectTtlDays,
inputs.isPublic,
inputs.contentType
);

// Create agent with object source
// Using client.api.post because SDK v1.0.0 types are missing 'version' field in AgentCreateParams
Expand Down Expand Up @@ -173,7 +179,8 @@ async function deployFileAgent(
client,
filePath,
inputs.objectTtlDays,
inputs.isPublic
inputs.isPublic,
inputs.contentType
);

// Create agent with object source
Expand Down
Loading
Loading