Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85f7a5d779 |
@@ -33,24 +33,3 @@ The value can range from 0 to 9:
|
|||||||
|
|
||||||
Higher levels will result in better compression, but will take longer to complete.
|
Higher levels will result in better compression, but will take longer to complete.
|
||||||
For large files that are not easily compressed, a value of 0 is recommended for significantly faster uploads.
|
For large files that are not easily compressed, a value of 0 is recommended for significantly faster uploads.
|
||||||
|
|
||||||
## Which versions of the artifacts packages are compatible?
|
|
||||||
[actions/upload-artifact](https://github.com/actions/upload-artifact) and [actions/download-artifact](https://github.com/actions/download-artifact), are part of the [GitHub Actions toolkit](https://github.com/actions/toolkit) and are typically used together to upload and download artifacts in your workflows.
|
|
||||||
|
|
||||||
1. **Matching Versions:**
|
|
||||||
- Use matching versions of `actions/upload-artifact` and `actions/download-artifact` to ensure compatibility.
|
|
||||||
|
|
||||||
2. **Workflow YAML File:**
|
|
||||||
- In your GitHub Actions workflow YAML file, you specify the version of the actions you want to use. For example:
|
|
||||||
```yaml
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
# ...
|
|
||||||
uses: actions/download-artifact@v4
|
|
||||||
# ...
|
|
||||||
```
|
|
||||||
|
|
||||||
3. **Release Notes:**
|
|
||||||
- Check the release notes for each repository to see if there are any specific notes about compatibility or changes in behavior.
|
|
||||||
|
|
||||||
## How long will my artifact be available?
|
|
||||||
The default retention period is 90 days. For more information, visit: https://github.com/actions/upload-artifact?tab=readme-ov-file#retention-period
|
|
||||||
|
|||||||
@@ -49,9 +49,7 @@ export async function getArtifactPublic(
|
|||||||
|
|
||||||
if (getArtifactResp.data.artifacts.length === 0) {
|
if (getArtifactResp.data.artifacts.length === 0) {
|
||||||
throw new ArtifactNotFoundError(
|
throw new ArtifactNotFoundError(
|
||||||
`Artifact not found for name: ${artifactName}
|
`Artifact not found for name: ${artifactName}`
|
||||||
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
|
|
||||||
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -91,9 +89,7 @@ export async function getArtifactInternal(
|
|||||||
|
|
||||||
if (res.artifacts.length === 0) {
|
if (res.artifacts.length === 0) {
|
||||||
throw new ArtifactNotFoundError(
|
throw new ArtifactNotFoundError(
|
||||||
`Artifact not found for name: ${artifactName}
|
`Artifact not found for name: ${artifactName}`
|
||||||
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
|
|
||||||
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Vendored
-4
@@ -164,7 +164,3 @@
|
|||||||
### 3.2.2
|
### 3.2.2
|
||||||
|
|
||||||
- Add new default cache download method to improve performance and reduce hangs [#1484](https://github.com/actions/toolkit/pull/1484)
|
- Add new default cache download method to improve performance and reduce hangs [#1484](https://github.com/actions/toolkit/pull/1484)
|
||||||
|
|
||||||
### 3.2.3
|
|
||||||
|
|
||||||
- Fixed a bug that mutated path arguments to `getCacheVersion` [#1378](https://github.com/actions/toolkit/pull/1378)
|
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/cache",
|
"name": "@actions/cache",
|
||||||
"version": "3.2.3",
|
"version": "3.2.2",
|
||||||
"preview": true,
|
"preview": true,
|
||||||
"description": "Actions cache lib",
|
"description": "Actions cache lib",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|||||||
+1
-2
@@ -80,8 +80,7 @@ export function getCacheVersion(
|
|||||||
compressionMethod?: CompressionMethod,
|
compressionMethod?: CompressionMethod,
|
||||||
enableCrossOsArchive = false
|
enableCrossOsArchive = false
|
||||||
): string {
|
): string {
|
||||||
// don't pass changes upstream
|
const components = paths
|
||||||
const components = paths.slice()
|
|
||||||
|
|
||||||
// Add compression method to cache version to restore
|
// Add compression method to cache version to restore
|
||||||
// compressed cache as per compression method
|
// compressed cache as per compression method
|
||||||
|
|||||||
Reference in New Issue
Block a user