From 6c139afa6f18a1359e5a9185f9415433473e3793 Mon Sep 17 00:00:00 2001 From: Rob Herley Date: Thu, 14 Dec 2023 15:08:24 -0500 Subject: [PATCH] update imports and old v4-beta references --- .github/workflows/check-dist.yml | 2 +- .github/workflows/test.yml | 6 +++--- README.md | 2 +- src/upload-artifact.ts | 6 ++---- 4 files changed, 7 insertions(+), 9 deletions(-) diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 3b8b872..cd90053 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -46,7 +46,7 @@ jobs: id: diff # If index.js was different than expected, upload the expected version as an artifact - - uses: actions/upload-artifact@v4-beta + - uses: actions/upload-artifact@v4 if: ${{ failure() && steps.diff.conclusion == 'failure' }} with: name: dist diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 890a596..2c38366 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -81,7 +81,7 @@ jobs: # Download Artifact #1 and verify the correctness of the content - name: 'Download artifact #1' - uses: actions/download-artifact@v4-beta + uses: actions/download-artifact@v4 with: name: 'Artifact-A-${{ matrix.runs-on }}' path: some/new/path @@ -101,7 +101,7 @@ jobs: # Download Artifact #2 and verify the correctness of the content - name: 'Download artifact #2' - uses: actions/download-artifact@v4-beta + uses: actions/download-artifact@v4 with: name: 'Artifact-Wildcard-${{ matrix.runs-on }}' path: some/other/path @@ -122,7 +122,7 @@ jobs: # Download Artifact #4 and verify the correctness of the content - name: 'Download artifact #4' - uses: actions/download-artifact@v4-beta + uses: actions/download-artifact@v4 with: name: 'Multi-Path-Artifact-${{ matrix.runs-on }}' path: multi/artifact diff --git a/README.md b/README.md index 601d7fd..6cce2e3 100644 --- a/README.md +++ b/README.md @@ -271,7 +271,7 @@ You can use `~` in the path input as a substitute for `$HOME`. Basic tilde expan echo hello > ~/new/artifact/world.txt - uses: actions/upload-artifact@v4 with: - name: Artifacts-V4-beta + name: my-artifacts path: ~/new/**/* ``` diff --git a/src/upload-artifact.ts b/src/upload-artifact.ts index 3706d2f..d6496b7 100644 --- a/src/upload-artifact.ts +++ b/src/upload-artifact.ts @@ -1,7 +1,5 @@ -import * as core from '../node_modules/@actions/core/' -import artifact, { - UploadArtifactOptions -} from '../node_modules/@actions/artifact/lib/artifact' +import * as core from '@actions/core' +import artifact, {UploadArtifactOptions} from '@actions/artifact' import {findFilesToUpload} from './search' import {getInputs} from './input-helper' import {NoFileOptions} from './constants'