> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Update GitHub release asset

> Rename or relabel an asset attached to a GitHub release.

`github.updateReleaseAsset` changes an uploaded release asset's filename or display label.

```ts automations/update-github-release-asset.automation.ts theme={null}
import { automation } from "automate.ax"
import { github } from "automate.ax/github"

export default automation("Label GitHub release asset", () => {
  github.updateReleaseAsset({
    assetId: 123456,
    label: "macOS binary",
    owner: "SentsCo",
    repository: "automate.ax",
  })
})
```

Provide the repository, `assetId`, and at least one replacement: `name` or `label`. Use an empty `label` to remove the display label. Returns the asset's `id`, `name`, `size`, `state`, and `browser_download_url`. Renaming does not replace the asset's binary content. Requires Contents write permission.
