Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(repo): fix soft blocks api workflow #18747

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions .github/workflows/taiko-client--pages.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
name: "Taiko Client Github Pages"
name: "Taiko Client Soft Blocks Documentation"

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- "packages/taiko-client/driver/soft_blocks/**"
- "packages/taiko-client/docs/**"
branches-ignore:
- release-please--branches--**
- dependabot/**

push:
branches: [main]
branches:
- main
paths:
- "packages/taiko-client/**"
- "packages/taiko-client/docs/**"

jobs:
swagger-gen:
if: github.event_name == 'pull_request'
runs-on: [arc-runner-set]
steps:
- name: Checkout code
Expand Down Expand Up @@ -38,16 +49,16 @@ jobs:
git config --global user.email "github-actions[bot]@users.noreply.github.com"
if ! git diff --quiet; then
git add -u
git commit -m "Update Swagger documentation"
git commit -m "chore(taiko-client): update swagger documentation"
git push origin HEAD:${{ github.ref_name }}
else
echo "No changes to commit"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: [arc-runner-set]
needs: swagger-gen
permissions:
contents: write
steps:
Expand Down
4 changes: 2 additions & 2 deletions packages/taiko-client/driver/soft_blocks/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type softBlockChainSyncer interface {

// @license.name MIT
// @license.url https://github.com/taikoxyz/taiko-mono/blob/main/LICENSE.md
// SoftBlockAPIServer represents a soft blcok server instance.
// SoftBlockAPIServer represents a soft block server instance.
type SoftBlockAPIServer struct {
echo *echo.Echo
chainSyncer softBlockChainSyncer
Expand All @@ -46,7 +46,7 @@ type SoftBlockAPIServer struct {
checkSig bool
}

// New creates a new soft blcok server instance, and starts the server.
// New creates a new soft block server instance, and starts the server.
func New(
cors string,
jwtSecret []byte,
Expand Down
Loading