From f9b240399a9b96ab6e59061428ce726a923b36c9 Mon Sep 17 00:00:00 2001 From: Jess Bees Date: Thu, 14 Dec 2023 15:08:30 -0500 Subject: [PATCH] Use latest actions/upload-artifact --- .github/workflows/test-hosted-runners.yml | 2 +- README.md | 4 ++-- action.yml | 7 ++++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-hosted-runners.yml b/.github/workflows/test-hosted-runners.yml index 5b0dab9..609ed31 100644 --- a/.github/workflows/test-hosted-runners.yml +++ b/.github/workflows/test-hosted-runners.yml @@ -34,7 +34,7 @@ jobs: path: artifact - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: github-pages path: artifact2 diff --git a/README.md b/README.md index af113d2..3f387ea 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ steps: echo "::warning title=Invalid file permissions automatically fixed::$line" done - name: Upload Pages artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 # ... ``` @@ -62,7 +62,7 @@ steps: echo "::warning title=Invalid file permissions automatically fixed::$line" done - name: Upload Pages artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 # ... ``` diff --git a/action.yml b/action.yml index d4c9a9f..20d3f3e 100644 --- a/action.yml +++ b/action.yml @@ -14,6 +14,10 @@ inputs: description: "Duration after which artifact will expire in days." required: false default: "1" +outputs: + artifact_id: + description: "The ID of the artifact that was uploaded." + value: ${{ steps.upload-artifact.outputs.artifact-id }} runs: using: composite steps: @@ -63,7 +67,8 @@ runs: INPUT_PATH: ${{ inputs.path }} - name: Upload artifact - uses: actions/upload-artifact@v3 + id: upload-artifact + uses: actions/upload-artifact@v4 with: name: ${{ inputs.name }} path: ${{ runner.temp }}/artifact.tar