mirror of
https://github.com/actions/download-artifact.git
synced 2026-03-11 16:00:49 +01:00
Fix the expected type
This commit is contained in:
6
.github/workflows/test.yml
vendored
6
.github/workflows/test.yml
vendored
@@ -166,20 +166,20 @@ jobs:
|
|||||||
echo '{"key": "value"}' > path/to/extension-test/data.json
|
echo '{"key": "value"}' > path/to/extension-test/data.json
|
||||||
- uses: actions/upload-artifact@v4 # V4 is important here to ensure we're supporting older versions correctly
|
- uses: actions/upload-artifact@v4 # V4 is important here to ensure we're supporting older versions correctly
|
||||||
with:
|
with:
|
||||||
name: report.txt-${{ matrix.runs-on }}
|
name: report.txt-${{ matrix.runs-on }}.json
|
||||||
path: path/to/extension-test/data.json
|
path: path/to/extension-test/data.json
|
||||||
|
|
||||||
- name: Download misleading-extension artifact without decompressing
|
- name: Download misleading-extension artifact without decompressing
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
name: report.txt-${{ matrix.runs-on }}
|
name: report.txt-${{ matrix.runs-on }}.json
|
||||||
path: ext-test/raw
|
path: ext-test/raw
|
||||||
skip-decompress: true
|
skip-decompress: true
|
||||||
|
|
||||||
- name: Verify downloaded file has .zip extension appended
|
- name: Verify downloaded file has .zip extension appended
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
expected="ext-test/raw/report.txt-${{ matrix.runs-on }}.zip"
|
expected="ext-test/raw/report.txt-${{ matrix.runs-on }}.json.zip"
|
||||||
if [ -f "$expected" ]; then
|
if [ -f "$expected" ]; then
|
||||||
echo "PASS: Downloaded file has .zip appended: $expected"
|
echo "PASS: Downloaded file has .zip appended: $expected"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user