mirror of
https://github.com/actions/upload-pages-artifact.git
synced 2025-12-08 16:16:18 +00:00
Use latest actions/upload-artifact
This commit is contained in:
2
.github/workflows/test-hosted-runners.yml
vendored
2
.github/workflows/test-hosted-runners.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
# ...
|
||||
```
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user