fix: health endpoint now detects stopped block production #8407
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI and Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| # Trigger on version tags | |
| tags: | |
| - "v*" | |
| pull_request: | |
| merge_group: | |
| workflow_dispatch: | |
| # Inputs the workflow accepts. | |
| inputs: | |
| version: | |
| # Friendly description to be shown in the UI instead of 'name' | |
| description: "Semver type of new version (major / minor / patch)" | |
| # Input has to be provided for the workflow to run | |
| required: true | |
| type: choice | |
| options: | |
| - patch | |
| - minor | |
| - major | |
| jobs: | |
| lint: | |
| uses: ./.github/workflows/lint.yml | |
| test: | |
| uses: ./.github/workflows/test.yml | |
| secrets: inherit | |
| with: | |
| # tag with the pr in the format of pr-1234 or the tag / branch if it is not a PR. | |
| image-tag: ${{ github.event.pull_request.number && format('pr-{0}', github.event.pull_request.number) || github.ref_name }} | |
| proto: | |
| uses: ./.github/workflows/proto.yml | |
| # branch_name trims ref/heads/ from github.ref to access a clean branch name | |
| branch_name: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| branch: ${{ steps.trim_ref.outputs.branch }} | |
| steps: | |
| - name: Trim branch name | |
| id: trim_ref | |
| run: | | |
| echo "branch=$(${${{ github.ref }}:11})" >> $GITHUB_OUTPUT | |
| # Make a release if this is a manually trigger job, i.e. workflow_dispatch | |
| release: | |
| needs: [lint, test, proto, branch_name] | |
| runs-on: ubuntu-latest | |
| if: ${{ github.event_name == 'workflow_dispatch' }} | |
| permissions: "write-all" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Remove existing files | |
| run: | | |
| rm -rf /opt/homebrew/bin/gtar | |
| - name: Version Release | |
| uses: evstack/.github/.github/actions/[email protected] | |
| with: | |
| github-token: ${{secrets.GITHUB_TOKEN}} | |
| version-bump: ${{inputs.version}} | |
| release-branch: ${{needs.branch_name.outputs.branch}} |