From 888798aeba903df8e187d5e960d5818c930d78b4 Mon Sep 17 00:00:00 2001 From: Yoann Chaudet Date: Thu, 18 Aug 2022 16:49:51 -0700 Subject: [PATCH] Add symlink check --- .github/workflows/test.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 62a7b9a..0907a6c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,25 +17,29 @@ jobs: - name: Checkout uses: actions/checkout@v3 - - name: Generate artifacts + - name: Generate files run: mkdir artifact && mkdir artifact2 && cd artifact && ../script/new-artifact.sh shell: bash - - name: Upload artifacts + - name: Upload artifact uses: ./ with: path: artifact - - name: Download artifacts + - name: Download artifact uses: actions/download-artifact@v3 with: name: github-pages path: artifact2 - - name: Extract artifacts + - name: Extract artifact run: tar -xf artifact2/artifact.tar -C artifact2 && rm artifact2/artifact.tar shell: bash - - name: Compare artifacts + - name: Compare files run: diff -qr artifact artifact2 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