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