Use latest actions/upload-artifact

This commit is contained in:
Jess Bees
2023-12-14 15:08:30 -05:00
parent a753861a5d
commit f9b240399a
3 changed files with 9 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ jobs:
path: artifact path: artifact
- name: Download artifact - name: Download artifact
uses: actions/download-artifact@v3 uses: actions/download-artifact@v4
with: with:
name: github-pages name: github-pages
path: artifact2 path: artifact2

View File

@@ -47,7 +47,7 @@ steps:
echo "::warning title=Invalid file permissions automatically fixed::$line" echo "::warning title=Invalid file permissions automatically fixed::$line"
done done
- name: Upload Pages artifact - 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" echo "::warning title=Invalid file permissions automatically fixed::$line"
done done
- name: Upload Pages artifact - name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2 uses: actions/upload-pages-artifact@v3
# ... # ...
``` ```

View File

@@ -14,6 +14,10 @@ inputs:
description: "Duration after which artifact will expire in days." description: "Duration after which artifact will expire in days."
required: false required: false
default: "1" default: "1"
outputs:
artifact_id:
description: "The ID of the artifact that was uploaded."
value: ${{ steps.upload-artifact.outputs.artifact-id }}
runs: runs:
using: composite using: composite
steps: steps:
@@ -63,7 +67,8 @@ runs:
INPUT_PATH: ${{ inputs.path }} INPUT_PATH: ${{ inputs.path }}
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v3 id: upload-artifact
uses: actions/upload-artifact@v4
with: with:
name: ${{ inputs.name }} name: ${{ inputs.name }}
path: ${{ runner.temp }}/artifact.tar path: ${{ runner.temp }}/artifact.tar