Skip to content

Commit 08e9915

Browse files
committed
CI on forked branches
1 parent 6eff10a commit 08e9915

2 files changed

Lines changed: 9 additions & 13 deletions

File tree

.github/workflows/build_and_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ env:
4747

4848
jobs:
4949
build-native:
50-
name: Build Native Library
50+
name: Check changes
5151
runs-on: ubuntu-24.04
5252
container:
5353
image: amd64/rust

.github/workflows/notify_test_workflow.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#
12
# Licensed to the Apache Software Foundation (ASF) under one
23
# or more contributor license agreements. See the NOTICE file
34
# distributed with this work for additional information
@@ -112,23 +113,18 @@ jobs:
112113
throw new Error('There was a new unsynced commit pushed. Please retrigger the workflow.');
113114
}
114115
115-
// Here we get check run ID to provide Check run view instead of Actions view.
116+
// Here we get check run ID to provide Check run view instead of Actions view
116117
const check_runs = await github.request(check_run_endpoint, check_run_params)
117-
const check_run_head = check_runs.data.check_runs.filter(r => r.name === "Run / Build Native Library")[0]
118+
const check_run_head = check_runs.data.check_runs.filter(r => r.name === "Run / Check changes")[0]
118119
119-
if (check_run_head && check_run_head.head_sha != context.payload.pull_request.head.sha) {
120+
if (check_run_head.head_sha != context.payload.pull_request.head.sha) {
120121
throw new Error('There was a new unsynced commit pushed. Please retrigger the workflow.');
121122
}
122123
123-
const check_run_url = check_run_head
124-
? 'https://github.com/'
125-
+ context.payload.pull_request.head.repo.full_name
126-
+ '/runs/'
127-
+ check_run_head.id
128-
: 'https://github.com/'
129-
+ context.payload.pull_request.head.repo.full_name
130-
+ '/actions/runs/'
131-
+ run_id
124+
const check_run_url = 'https://github.com/'
125+
+ context.payload.pull_request.head.repo.full_name
126+
+ '/runs/'
127+
+ check_run_head.id
132128
133129
const actions_url = 'https://github.com/'
134130
+ context.payload.pull_request.head.repo.full_name

0 commit comments

Comments
 (0)