Skip to content

Commit 253076c

Browse files
committed
fix
1 parent df56964 commit 253076c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ jobs:
2727
- name: Set matrix
2828
id: set-matrix
2929
run: |
30-
echo "action: ${{ github.event.action }}"
31-
echo "event: ${{ github.event_name }}"
3230
build_types='["validation"'
3331
hw_types='["validation"'
3432
wokwi_types='["validation"'
@@ -66,7 +64,7 @@ jobs:
6664
name: Run tests on hardware
6765
uses: ./.github/workflows/hw.yml
6866
needs: [gen-matrix, call-build-tests]
69-
if: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'hil_test') }}
67+
if: ${{ github.event_name != 'pull_request_target' || contains(github.event.pull_request.labels.*.name, 'hil_test') }}
7068
strategy:
7169
fail-fast: false
7270
matrix:
@@ -116,7 +114,7 @@ jobs:
116114
with:
117115
script: |
118116
// Check if event is not a pull request or is a closed pull request
119-
if (github.event_name === 'pull_request' && github.event.action !== 'closed') {
117+
if (github.event_name === 'pull_request_target' && github.event.action !== 'closed') {
120118
console.log('Skipping cache cleanup');
121119
return;
122120
}

0 commit comments

Comments
 (0)