Skip to content

Commit b148978

Browse files
Merge pull request #16 from stainless-code/fix-required-status-checks
Fix required status checks
2 parents de1a5f4 + 2db90bb commit b148978

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

.github/actions/setup/action.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,3 @@ runs:
1212
- name: Install packages
1313
shell: bash
1414
run: bun install
15-
16-
- name: Check Branch
17-
shell: bash
18-
run: |
19-
if [[ "${{ github.event.pull_request.head.ref }}" == "changeset-release/main" ]]; then
20-
echo "Bypassing checks for changeset-release/main"
21-
exit 0
22-
fi

.github/workflows/ci.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
format:
10+
if: github.event.pull_request.head.ref != 'changeset-release/main'
1011
name: 💅 Format
1112
runs-on: ubuntu-latest
1213
steps:
@@ -20,6 +21,7 @@ jobs:
2021
run: bun run format:check
2122

2223
lint:
24+
if: github.event.pull_request.head.ref != 'changeset-release/main'
2325
name: 🕵 Lint
2426
runs-on: ubuntu-latest
2527
steps:
@@ -33,6 +35,7 @@ jobs:
3335
run: bun run lint
3436

3537
typecheck:
38+
if: github.event.pull_request.head.ref != 'changeset-release/main'
3639
name: ✅ Typecheck
3740
runs-on: ubuntu-latest
3841
steps:
@@ -46,6 +49,7 @@ jobs:
4649
run: bun run typecheck
4750

4851
test:
52+
if: github.event.pull_request.head.ref != 'changeset-release/main'
4953
name: 🧪 Test
5054
runs-on: ubuntu-latest
5155
steps:
@@ -59,6 +63,7 @@ jobs:
5963
run: bun run test
6064

6165
build:
66+
if: github.event.pull_request.head.ref != 'changeset-release/main'
6267
name: 🧰 Build
6368
runs-on: ubuntu-latest
6469
steps:
@@ -70,3 +75,11 @@ jobs:
7075

7176
- name: Run build
7277
run: bun run build
78+
79+
status-check:
80+
if: github.event.pull_request.head.ref == 'changeset-release/main'
81+
name: 📋 Status check
82+
runs-on: ubuntu-latest
83+
steps:
84+
- name: Report Success
85+
run: echo "Marking all checks as successful for changeset-release/main branch."

0 commit comments

Comments
 (0)