From a66f988a59fb05653609db05ea29f7964bd0fc87 Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Fri, 1 Nov 2024 10:27:54 +0700 Subject: [PATCH] numtide/clean-git-action --- .github/workflows/ci.yml | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 15399c23..baad27cd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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