Skip to content

Commit 9c093a3

Browse files
authored
Merge pull request #2981 from hathach/skip-iar-forked-pr
skip iar build for forked PR
2 parents 99b6e97 + 7282572 commit 9c093a3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ jobs:
111111

112112
# ---------------------------------------
113113
# Build IAR on HFP self-hosted
114+
# Since IAR Token secret is not passed to forked PR, only build on PR from the same repo
114115
# ---------------------------------------
115116
arm-iar:
116117
if: github.repository_owner == 'hathach' && github.event_name == 'push'

.github/workflows/hil_test.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,10 @@ jobs:
9090
# ---------------------------------------
9191
# Hardware in the loop (HIL)
9292
# self-hosted by HFP, build with IAR toolchain, for attached hardware checkout test/hil/hfp.json
93+
# Since IAR Token secret is not passed to forked PR, only build on PR from the same repo
9394
# ---------------------------------------
9495
hil-hfp:
95-
if: github.repository_owner == 'hathach'
96+
if: github.repository_owner == 'hathach' && github.event.pull_request.head.repo.fork == false
9697
runs-on: [self-hosted, Linux, X64, hifiphile]
9798
env:
9899
IAR_LMS_BEARER_TOKEN: ${{ secrets.IAR_LMS_BEARER_TOKEN }}

0 commit comments

Comments
 (0)