mirror of
https://github.com/actions/upload-pages-artifact.git
synced 2025-12-08 16:16:18 +00:00
Add symlink check
This commit is contained in:
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@@ -17,25 +17,29 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Generate artifacts
|
- name: Generate files
|
||||||
run: mkdir artifact && mkdir artifact2 && cd artifact && ../script/new-artifact.sh
|
run: mkdir artifact && mkdir artifact2 && cd artifact && ../script/new-artifact.sh
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifact
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
path: artifact
|
path: artifact
|
||||||
|
|
||||||
- name: Download artifacts
|
- name: Download artifact
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: github-pages
|
name: github-pages
|
||||||
path: artifact2
|
path: artifact2
|
||||||
|
|
||||||
- name: Extract artifacts
|
- name: Extract artifact
|
||||||
run: tar -xf artifact2/artifact.tar -C artifact2 && rm artifact2/artifact.tar
|
run: tar -xf artifact2/artifact.tar -C artifact2 && rm artifact2/artifact.tar
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Compare artifacts
|
- name: Compare files
|
||||||
run: diff -qr artifact artifact2
|
run: diff -qr artifact artifact2
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
- name: Check for absence of symlinks
|
||||||
|
run: if [ $(find artifact2 -type l | wc -l) != 0 ]; then echo "Symlinks found"; exit 1; fi
|
||||||
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user