Repository navigation
Chore #103
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
Chore #103
Changes from all commits
bb7c0b7
43fded1
6b636c4
3052d29
b806073
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,6 +35,8 @@ jobs: | |
| build-test: | ||
| runs-on: ubuntu-latest | ||
| name: Build and Test | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
|
|
@@ -56,5 +58,24 @@ jobs: | |
| - name: Install dependencies | ||
| run: bun install | ||
|
|
||
| - name: Generate specifications | ||
| run: bun run specification:build | ||
|
|
||
| - name: Build registry | ||
| run: bun run registry:build | ||
|
|
||
| - name: Commit changes if any | ||
| run: | | ||
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
| git config --global user.name "github-actions[bot]" | ||
|
|
||
| if git diff --quiet; then | ||
| echo "No changes to commit" | ||
| else | ||
| git add . | ||
| git commit -m "chore: update generated specifications and registry" | ||
| git push origin HEAD:${{ github.head_ref }} | ||
| fi | ||
|
Comment on lines
+67
to
+78
|
||
|
|
||
| - run: bun run build | ||
| - run: bun run test | ||
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This deploy workflow commits and pushes generated files back to
mainas part of a run triggered bypushtomain. That can cause extra pipeline runs (push → workflow → push → workflow), can fail on protected branches, and makes deployments less deterministic. Consider avoiding pushes from CI (treat generated artifacts as build outputs) or adding guards (e.g., skip ifgithub.actoris the actions bot / use[skip ci]/ separate scheduled update workflow).