Skip to content

Commit f39dc63

Browse files
Update code-quality.yml
1 parent 9411822 commit f39dc63

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/code-quality.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ on:
1515
- "utils/**/*.ts"
1616
- "utils/package.json"
1717
- "package.json"
18-
- ".github/workflows/ci.yml"
18+
- ".github/workflows/code-quality.yml"
1919
pull_request:
2020
branches: ["*"]
2121
paths:
@@ -26,7 +26,7 @@ on:
2626
- "utils/**/*.ts"
2727
- "utils/**/package.json"
2828
- "package.json"
29-
- ".github/workflows/ci.yml"
29+
- ".github/workflows/code-quality.yml"
3030
types:
3131
- opened
3232
- ready_for_review
@@ -41,7 +41,7 @@ jobs:
4141
name: Lint & types
4242
runs-on: ubuntu-slim
4343

44-
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
44+
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft || github.ref != 'refs/heads/main' }}
4545

4646
steps:
4747
- name: Harden the runner (Audit all outbound calls)
@@ -62,7 +62,7 @@ jobs:
6262
name: Before/After tests
6363
runs-on: ${{ matrix.os }}
6464

65-
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft }}
65+
if: ${{ github.event_name != 'pull_request' || !github.event.pull_request.draft || github.ref != 'refs/heads/main' }}
6666

6767
strategy:
6868
fail-fast: false

0 commit comments

Comments
 (0)