mirror of
http://gitea.com/actions/checkout
synced 2024-11-30 21:22:26 +08:00
Adding id: diff to step doing comparison and update of upload-artifact action to v3 (node 16))
Fix to issues/1205
This commit is contained in:
parent
ac59398561
commit
6415596e8d
3
.github/workflows/check-dist.yml
vendored
3
.github/workflows/check-dist.yml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user