Skip to content

Commit c86dacf

Browse files
committed
Fix CI
1 parent 535f57d commit c86dacf

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
outputs:
1717
ts_modified: ${{ steps.check-files.outputs.ts_modified }}
1818
steps:
19-
- name: Checkout repository
19+
- name: Checkout PR branch
2020
uses: actions/checkout@v4
2121
with:
2222
ref: ${{ github.event.pull_request.head.ref }}
@@ -67,19 +67,11 @@ jobs:
6767
build:
6868
name: Build
6969
needs: update-indices
70-
if: always() && (needs.update-indices.outputs.has_changes == 'false' || needs.update-indices.result == 'skipped')
70+
if: always() && (needs.update-indices.result == 'skipped' || needs.update-indices.outputs.has_changes == 'false')
7171
runs-on: ubuntu-latest
7272
steps:
7373
- name: Checkout repository
74-
if: github.event_name != 'pull_request'
75-
uses: actions/checkout@v4
76-
77-
- name: Checkout PR branch
78-
if: github.event_name == 'pull_request'
7974
uses: actions/checkout@v4
80-
with:
81-
ref: ${{ github.event.pull_request.head.ref }}
82-
token: ${{ secrets.BOT_GH_TOKEN }}
8375

8476
- name: Setup Node.js
8577
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)