From fdc16318f57442474dd4f55f8e9495236510ac49 Mon Sep 17 00:00:00 2001 From: thedavidmeister Date: Mon, 14 Oct 2024 11:52:55 +0400 Subject: [PATCH] git dirty check in sg --- .github/workflows/deploy-subgraph.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy-subgraph.yaml b/.github/workflows/deploy-subgraph.yaml index 8bbf9a6e7..18d285ac8 100644 --- a/.github/workflows/deploy-subgraph.yaml +++ b/.github/workflows/deploy-subgraph.yaml @@ -44,5 +44,8 @@ jobs: - run: nix develop -c graph build --network ${{ inputs.network }} working-directory: subgraph - run: nix develop -c goldsky login --token ${{ secrets.CI_GOLDSKY_TOKEN }} + + # Check if the repo is clean before deploying. + - run: git diff --exit-code - run: nix develop -c goldsky subgraph deploy ${{ inputs.subgraph-name }} working-directory: subgraph \ No newline at end of file