Skip to content

Commit

Permalink
fix: rewrite status only on gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
sooluh committed May 22, 2024
1 parent db7c72e commit 9adbbde
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ jobs:
- name: Install dependencies
run: bun install

- name: Build Markdown (Merged Flag)
run: bun start --merged
- name: Build Markdown
run: bun start

- name: Commit & Push Changes
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
run: bun install

- name: Build Markdown
run: bun start
run: bun start --rewrite

- name: Commit & Push Changes
run: |
Expand Down
2 changes: 1 addition & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ for await (const file of await getFiles()) {
// sort alphabetically
json.apis.sort((a, b) => a.apiName.localeCompare(b.apiName))

if (Bun.argv[2] !== '--merged') {
if (Bun.argv[2] === '--rewrite') {
for (let i = 0; i < json.apis.length; i++) {
const api = json.apis[i]
const previous = api.status
Expand Down

0 comments on commit 9adbbde

Please sign in to comment.