Skip to content

Subgraph status action

Actions
Github Action for checking indexing errors in the subgraphs
v1.0.2
Latest
Star (1)

GitHub Status Action

Use this action for getting status of subgraph indexing.

Action arguments

  • subgraph: string – subgraph name for check. Required
  • version: "current" | "pending" – subgraph version for check. Optional, default value is "pending"
  • fail_on_error: boolean – fails your workflow if the subgraph has indexing errors. Optional, default value is false

Basic usage

jobs:
  check-subgraph:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Get subgraph status
        id: check
        uses: akropolisio/subgraph-status-action@v1
        with:
          subgraph: userName/my-amazing-subgraph
          version: pending
          fail_on_error: false

      - name: Do something if subgraph failed
        if: ${{ fromJSON(steps.check.outputs.hasError) }}
        run: |
          echo 'Error code ${{ steps.check.outputs.errorCode }}'
          echo 'Message ${{ steps.check.outputs.message }}'
        env:
          ERROR_CODE: ${{ steps.check.outputs.errorCode }}
          ERROR_MESSAGE: ${{ steps.check.outputs.message }}

      - name: Do something if subgraph healthy
        if: ${{ !fromJSON(steps.check.outputs.hasError) }}
        run: |
          echo 'Chain head block ${{ steps.check.outputs.chainHeadBlock }}'
          echo 'Latest synced block ${{ steps.check.outputs.latestBlock }}'
        env:
          CHAIN_HEAD_BLOCK: ${{ steps.check.outputs.chainHeadBlock }}
          LATEST_BLOCK: ${{ steps.check.outputs.latestBlock }}

Versioning (for contributors)

See the versioning documentation

Subgraph status action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Github Action for checking indexing errors in the subgraphs
v1.0.2
Latest

Subgraph status action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.