Skip to content

Commit

Permalink
numtide/clean-git-action
Browse files Browse the repository at this point in the history
  • Loading branch information
mightyiam committed Nov 1, 2024
1 parent a491962 commit a66f988
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,7 @@ jobs:
- run: npm ci
- run: ./git_hooks/pre-commit
- run: cargo run build
- name: no_untracked
run: |
set -euxo pipefail
if [[ `git ls-files --exclude-standard --others` ]]; then
echo "untracked files detected"
exit 1
fi
- name: no_modified
run: |
set -euxo pipefail
if ! git diff --exit-code; then
echo "modified files detected"
exit 1
fi
- uses: numtide/clean-git-action@v2
- id: get_output_dir
run: echo "output_dir=$(cargo run -- print-output-dir)" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v3
Expand Down

0 comments on commit a66f988

Please sign in to comment.