Skip to content

Commit

Permalink
chore: ensure build step does not produce dirty changes
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Mar 7, 2022
1 parent 876092d commit 33ad76e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -106,6 +106,9 @@ jobs:
env:
BABEL_8_BREAKING: false
STRIP_BABEL_8_FLAG: true
- name: Ensure cwd does not contain uncommitted changes
run: |
./scripts/assert-dir-git-clean.sh
- uses: actions/upload-artifact@v2
with:
name: babel-artifact
Expand Down
8 changes: 8 additions & 0 deletions scripts/assert-dir-git-clean.sh
@@ -0,0 +1,8 @@
#!/bin/sh

# Must run at a git working dir
if [ -n "$(git status --porcelain=v1 2>/dev/null)" ]; then
echo "Please re-run \"make build\" and checkout the following changes to git"
git status
exit 1
fi

0 comments on commit 33ad76e

Please sign in to comment.