diff --git a/.gitea/workflows/commit.yaml b/.gitea/workflows/commit.yaml index 9d83b19..08ab95a 100644 --- a/.gitea/workflows/commit.yaml +++ b/.gitea/workflows/commit.yaml @@ -11,13 +11,16 @@ jobs: runs-on: debian-latest steps: - name: Checkout - uses: actions/checkout@v4 + run: | + git clone --quiet --depth=1 --branch=${{ gitea.ref_name }} ${{ gitea.server_url }}/${{ gitea.repository }} repo - name: Install Bats run: | sudo apt-get update sudo apt-get install -y bats - name: Run Shell Tests - run: bats tests/shell/git_update.bats + run: | + cd repo + bats tests/shell/git_update.bats deploy: if: gitea.ref_name == 'master'