Skip to content

s2-specs-update

s2-specs-update #1

Workflow file for this run

name: Sync specs submodule
permissions:
contents: write
pull-requests: write
on:
repository_dispatch:
types: [s2-specs-update]
workflow_dispatch:
jobs:
update-specs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: true
- name: Update Submodules
id: submodules
uses: sgoudham/update-git-submodules@v2.1.1
with:
submodules: s2-specs
- name: Setup Bun
if: ${{ steps.submodules.outputs['s2-specs--updated'] }}
uses: oven-sh/setup-bun@v2
- name: Install Dependencies
if: ${{ steps.submodules.outputs['s2-specs--updated'] }}
run: bun install
- name: Regenerate Proto and OpenAPI files
if: ${{ steps.submodules.outputs['s2-specs--updated'] }}
run: |
mkdir -p packages/streamstore/src/generated/proto
bun run gen:proto
bun run gen:openapi
git add packages/streamstore/src/generated
- name: Create Pull Request
if: ${{ steps.submodules.outputs['s2-specs--updated'] }}
uses: peter-evans/create-pull-request@v8
with:
committer: s2-helper[bot] <194906454+s2-helper[bot]@users.noreply.github.com>
author: s2-helper[bot] <194906454+s2-helper[bot]@users.noreply.github.com>
sign-commits: true
title: "chore: update s2-specs to ${{ steps.submodules.outputs['s2-specs--latestShortCommitSha'] }}"
branch: "specs/update-s2-specs-${{ steps.submodules.outputs['s2-specs--latestShortCommitSha'] }}"
body: |
## s2-specs Update
${{ steps.submodules.outputs.prBody }}
### Changes
- Updated s2-specs submodule
- Regenerated proto TypeScript files
- Regenerated OpenAPI TypeScript files
**Commit:** ${{ steps.submodules.outputs['s2-specs--latestCommitSha'] }}
labels: |
dependencies
specs