mirror of
https://github.com/actions/hello-world-javascript-action.git
synced 2025-04-07 06:59:37 +00:00
9
.github/workflows/check-dist.yml
vendored
9
.github/workflows/check-dist.yml
vendored
@ -10,10 +10,12 @@
|
|||||||
name: Check Transpiled JavaScript
|
name: Check Transpiled JavaScript
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
@ -48,6 +50,11 @@ jobs:
|
|||||||
- name: Compare Directories
|
- name: Compare Directories
|
||||||
id: diff
|
id: diff
|
||||||
run: |
|
run: |
|
||||||
|
if [ ! -d dist/ ]; then
|
||||||
|
echo "Expected dist/ directory does not exist. See status below:"
|
||||||
|
ls -la ./
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
|
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
|
||||||
echo "Detected uncommitted changes after build. See status below:"
|
echo "Detected uncommitted changes after build. See status below:"
|
||||||
git diff --ignore-space-at-eol --text dist/
|
git diff --ignore-space-at-eol --text dist/
|
||||||
|
Reference in New Issue
Block a user