Compare commits

...

2 Commits

Author SHA1 Message Date
alexquitiaquez 04b85e0c25
Merge 6415596e8d into b4ffde65f4 2023-11-17 11:06:38 +01:00
alexquitiaquez 6415596e8d
Adding id: diff to step doing comparison and update of upload-artifact action to v3 (node 16))
Fix to issues/1205
2023-03-09 02:45:43 -05:00
1 changed files with 2 additions and 1 deletions

View File

@ -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