From 6415596e8d64a0b6edcd8a8ea07365ba1a6cf867 Mon Sep 17 00:00:00 2001 From: alexquitiaquez <65411897+alexquitiaquez@users.noreply.github.com> Date: Thu, 9 Mar 2023 02:45:43 -0500 Subject: [PATCH] Adding id: diff to step doing comparison and update of upload-artifact action to v3 (node 16)) Fix to issues/1205 --- .github/workflows/check-dist.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check-dist.yml b/.github/workflows/check-dist.yml index 01ca805..58c2c11 100644 --- a/.github/workflows/check-dist.yml +++ b/.github/workflows/check-dist.yml @@ -36,6 +36,7 @@ jobs: run: npm run build - name: Compare the expected and actual dist/ directories + id: diff run: | if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then echo "Detected uncommitted changes after build. See status below:" @@ -44,7 +45,7 @@ jobs: fi # If dist/ was different than expected, upload the expected version as an artifact - - uses: actions/upload-artifact@v2 + - uses: actions/upload-artifact@v3 if: ${{ failure() && steps.diff.conclusion == 'failure' }} with: name: dist