2023-12-07 17:57:20 +00:00
|
|
|
[@actions/artifact](../README.md) / Artifact
|
|
|
|
|
|
|
|
# Interface: Artifact
|
|
|
|
|
|
|
|
An Actions Artifact
|
|
|
|
|
|
|
|
## Table of contents
|
|
|
|
|
|
|
|
### Properties
|
|
|
|
|
|
|
|
- [createdAt](Artifact.md#createdat)
|
|
|
|
- [id](Artifact.md#id)
|
|
|
|
- [name](Artifact.md#name)
|
|
|
|
- [size](Artifact.md#size)
|
|
|
|
|
|
|
|
## Properties
|
|
|
|
|
|
|
|
### createdAt
|
|
|
|
|
|
|
|
• `Optional` **createdAt**: `Date`
|
|
|
|
|
|
|
|
The time when the artifact was created
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2024-01-18 14:51:01 +00:00
|
|
|
[src/internal/shared/interfaces.ts:123](https://github.com/actions/toolkit/blob/daf23ba/packages/artifact/src/internal/shared/interfaces.ts#L123)
|
2023-12-07 17:57:20 +00:00
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
### id
|
|
|
|
|
|
|
|
• **id**: `number`
|
|
|
|
|
|
|
|
The ID of the artifact
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2024-01-18 14:51:01 +00:00
|
|
|
[src/internal/shared/interfaces.ts:113](https://github.com/actions/toolkit/blob/daf23ba/packages/artifact/src/internal/shared/interfaces.ts#L113)
|
2023-12-07 17:57:20 +00:00
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
### name
|
|
|
|
|
|
|
|
• **name**: `string`
|
|
|
|
|
|
|
|
The name of the artifact
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2024-01-18 14:51:01 +00:00
|
|
|
[src/internal/shared/interfaces.ts:108](https://github.com/actions/toolkit/blob/daf23ba/packages/artifact/src/internal/shared/interfaces.ts#L108)
|
2023-12-07 17:57:20 +00:00
|
|
|
|
|
|
|
___
|
|
|
|
|
|
|
|
### size
|
|
|
|
|
|
|
|
• **size**: `number`
|
|
|
|
|
|
|
|
The size of the artifact in bytes
|
|
|
|
|
|
|
|
#### Defined in
|
|
|
|
|
2024-01-18 14:51:01 +00:00
|
|
|
[src/internal/shared/interfaces.ts:118](https://github.com/actions/toolkit/blob/daf23ba/packages/artifact/src/internal/shared/interfaces.ts#L118)
|