Skip to content

Commit 7a41971

Browse files
fix: input ref for pr ci (#447)
1 parent b6836a8 commit 7a41971

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/rbln_optimum_ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
- name: Checkout current repository
8282
uses: actions/checkout@v4
8383
with:
84-
ref: ${{ inputs.ref || github.sha }}
84+
ref: ${{ inputs.ref != '' && inputs.ref || github.sha }}
8585
submodules: recursive
8686
fetch-depth: 0
8787

@@ -163,7 +163,7 @@ jobs:
163163
- name: Checkout current repository
164164
uses: actions/checkout@v4
165165
with:
166-
ref: ${{ inputs.ref || github.sha }}
166+
ref: ${{ inputs.ref != '' && inputs.ref || github.sha }}
167167
submodules: recursive
168168
fetch-depth: 0
169169

@@ -283,7 +283,7 @@ jobs:
283283
- name: Checkout current repository
284284
uses: actions/checkout@v4
285285
with:
286-
ref: ${{ inputs.ref || github.sha }}
286+
ref: ${{ inputs.ref != '' && inputs.ref || github.sha }}
287287
submodules: recursive
288288
fetch-depth: 0
289289

.github/workflows/rbln_trigger_internal_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Checkout repository
3636
uses: actions/checkout@v4
3737
with:
38-
ref: ${{ inputs.ref || github.sha }}
38+
ref: ${{ inputs.ref != '' && inputs.ref || github.sha }}
3939
fetch-depth: 0
4040

4141
- name: Set up Python 3.12

.github/workflows/rbln_trigger_on_pr.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,5 @@ jobs:
8080
if: ${{ needs.check-skip-ci.outputs.should_skip != 'true' && (needs.check-team-member.outputs.is_team_member == 'true' || needs.check-team-member.outputs.is_collaborator == 'true') }}
8181
uses: ./.github/workflows/rbln_trigger_internal_test.yaml
8282
secrets: inherit
83+
with:
84+
ref: ${{ github.event.pull_request.head.sha }}

.github/workflows/rbln_vllm-rbln_pytest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
- name: Checkout the vllm-rbln repository
7878
uses: actions/checkout@v4
7979
with:
80-
ref: ${{ inputs.pr_number && format('refs/pull/{0}/merge', inputs.pr_number) || inputs.ref || github.sha }}
80+
ref: ${{ inputs.pr_number && format('refs/pull/{0}/merge', inputs.pr_number) || (inputs.ref != '' && inputs.ref) || github.sha }}
8181
submodules: recursive
8282
fetch-depth: 0
8383

@@ -203,7 +203,7 @@ jobs:
203203
- name: Checkout the vllm-rbln repository
204204
uses: actions/checkout@v4
205205
with:
206-
ref: ${{ inputs.pr_number && format('refs/pull/{0}/merge', inputs.pr_number) || inputs.ref || github.sha }}
206+
ref: ${{ inputs.pr_number && format('refs/pull/{0}/merge', inputs.pr_number) || (inputs.ref != '' && inputs.ref) || github.sha }}
207207
submodules: recursive
208208
fetch-depth: 0
209209

0 commit comments

Comments
 (0)