Skip to content

Commit b4765e2

Browse files
update yml
1 parent 34e6a08 commit b4765e2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/tester.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
push:
77
branches: [ master ]
88
pull_request:
9-
types: [ready_for_review]
9+
types: [labeled]
1010
branches: [ master ]
1111

1212
# Allows you to run this workflow manually from the Actions tab
@@ -16,8 +16,10 @@ on:
1616
jobs:
1717
# This workflow contains a single job called "build"
1818
test:
19+
if: github.event_name != 'pull_request' || github.event.label.name == 'safe-to-test'
20+
1921
# The type of runner that the job will run on
20-
runs-on: self-hosted
22+
runs-on: [self-hosted, kratos-runner]
2123

2224
env:
2325
GITHUB_ACTION: true
@@ -41,6 +43,10 @@ jobs:
4143
mkdir /gid/problemtypes
4244
mv $GITHUB_WORKSPACE/kratos.gid /gid/problemtypes/
4345
46+
- name: Check actor is trusted
47+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
48+
run: echo "Safe to run"
49+
4450
# start the tester thing
4551
- name: Tester
4652
run: |

0 commit comments

Comments
 (0)