Skip to content

Commit

Permalink
fix(repo): fix soft blocks api workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerLamTd committed Jan 10, 2025
1 parent 8c364b1 commit a99aaf6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 7 deletions.
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

0 comments on commit a99aaf6

Please sign in to comment.