Skip to content

Commit c36ace3

Browse files
committed
refactor: Remove merge_group trigger and simplify pull request condition checks in build workflow
1 parent 69cddf9 commit c36ace3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
- opened
99
- synchronize
1010
- reopened
11-
merge_group:
1211

1312
concurrency:
1413
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -47,7 +46,7 @@ jobs:
4746
run: npm run build
4847

4948
- name: Commit build artifacts (same-repo PRs only)
50-
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
49+
if: github.event.pull_request.head.repo.full_name == github.repository
5150
uses: EndBug/add-and-commit@v9
5251
with:
5352
add: "."
@@ -56,7 +55,7 @@ jobs:
5655
push: true
5756

5857
- name: Fail if dist is dirty (Forked PRs only)
59-
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository
58+
if: github.event.pull_request.head.repo.full_name != github.repository
6059
working-directory: .github/actions/core
6160
run: |
6261
if [[ -n $(git status --porcelain dist) ]]; then

0 commit comments

Comments
 (0)