1111 - " .github/workflows/ci.yml"
1212 - " !sdk/**"
1313
14- pull_request_target :
14+ pull_request :
1515 types : [opened, synchronize, reopened, ready_for_review]
1616 paths :
1717 - " **/*.rs"
2020 - " .github/workflows/ci.yml"
2121 - " !sdk/**"
2222
23+ workflow_dispatch :
24+
2325 # pull_request_target:
2426 # branches:
2527 # - main
5860 detect-changes :
5961 name : Detect Changed Paths
6062 runs-on : ubuntu-22.04
61- if : github.event.pull_request_target .draft != true
63+ if : github.event.pull_request .draft != true
6264 outputs :
6365 pharos : ${{ steps.filter.outputs.pharos }}
6466 sync-committee : ${{ steps.filter.outputs.sync-committee }}
6769 steps :
6870 - uses : actions/checkout@v3
6971 with :
70- ref : ${{ github.event.pull_request_target .head.sha || github.sha }}
72+ ref : ${{ github.event.pull_request .head.sha || github.sha }}
7173 token : ${{ secrets.GH_TOKEN }}
7274 fetch-depth : 0
7375
98100 check-wasm :
99101 name : Check Wasm Crates
100102 runs-on : arc-runner-set
101- if : github.event.pull_request_target .draft != true
103+ if : github.event.pull_request .draft != true
102104 strategy :
103105 matrix :
104106 crate : [gargantua-runtime, nexus-runtime]
@@ -121,7 +123,7 @@ jobs:
121123
122124 - uses : actions/checkout@v3
123125 with :
124- ref : ${{ github.event.pull_request_target .head.sha }}
126+ ref : ${{ github.event.pull_request .head.sha }}
125127 token : ${{ secrets.GH_TOKEN }}
126128 submodules : recursive
127129
@@ -183,7 +185,7 @@ jobs:
183185 check-workspace :
184186 name : Check Workspace
185187 runs-on : arc-runner-set
186- if : github.event.pull_request_target .draft != true
188+ if : github.event.pull_request .draft != true
187189 steps :
188190 - name : Get User Permission
189191 id : checkAccess
@@ -202,7 +204,7 @@ jobs:
202204
203205 - uses : actions/checkout@v3
204206 with :
205- ref : ${{ github.event.pull_request_target .head.sha }}
207+ ref : ${{ github.event.pull_request .head.sha }}
206208 token : ${{ secrets.GH_TOKEN }}
207209 submodules : recursive
208210
@@ -270,7 +272,7 @@ jobs:
270272 unit-tests :
271273 name : Unit Tests
272274 runs-on : arc-runner-set
273- if : github.event.pull_request_target .draft != true
275+ if : github.event.pull_request .draft != true
274276 steps :
275277 - name : Get User Permission
276278 id : checkAccess
@@ -289,7 +291,7 @@ jobs:
289291
290292 - uses : actions/checkout@v3
291293 with :
292- ref : ${{ github.event.pull_request_target .head.sha }}
294+ ref : ${{ github.event.pull_request .head.sha }}
293295 token : ${{ secrets.GH_TOKEN }}
294296 submodules : recursive
295297
@@ -357,7 +359,7 @@ jobs:
357359 simnet-tests :
358360 name : Simnet Tests
359361 runs-on : arc-runner-set
360- if : github.event.pull_request_target .draft != true
362+ if : github.event.pull_request .draft != true
361363 steps :
362364 - name : Get User Permission
363365 id : checkAccess
@@ -376,7 +378,7 @@ jobs:
376378
377379 - uses : actions/checkout@v3
378380 with :
379- ref : ${{ github.event.pull_request_target .head.sha }}
381+ ref : ${{ github.event.pull_request .head.sha }}
380382 token : ${{ secrets.GH_TOKEN }}
381383 submodules : recursive
382384
@@ -451,7 +453,7 @@ jobs:
451453 name : Ethereum Sync Committee Tests
452454 needs : detect-changes
453455 runs-on : ubuntu-22.04
454- if : github.event.pull_request_target .draft != true && needs.detect-changes.outputs.sync-committee == 'true'
456+ if : github.event.pull_request .draft != true && needs.detect-changes.outputs.sync-committee == 'true'
455457 steps :
456458 - name : Get User Permission
457459 id : checkAccess
@@ -470,7 +472,7 @@ jobs:
470472
471473 - uses : actions/checkout@v3
472474 with :
473- ref : ${{ github.event.pull_request_target .head.sha }}
475+ ref : ${{ github.event.pull_request .head.sha }}
474476 token : ${{ secrets.GH_TOKEN }}
475477 submodules : recursive
476478
@@ -545,7 +547,7 @@ jobs:
545547 name : Binance Smart Chain Tests
546548 needs : detect-changes
547549 runs-on : ubuntu-22.04
548- if : github.event.pull_request_target .draft != true && needs.detect-changes.outputs.bsc == 'true'
550+ if : github.event.pull_request .draft != true && needs.detect-changes.outputs.bsc == 'true'
549551 steps :
550552 - name : Get User Permission
551553 id : checkAccess
@@ -564,7 +566,7 @@ jobs:
564566
565567 - uses : actions/checkout@v3
566568 with :
567- ref : ${{ github.event.pull_request_target .head.sha }}
569+ ref : ${{ github.event.pull_request .head.sha }}
568570 token : ${{ secrets.GH_TOKEN }}
569571 submodules : recursive
570572
@@ -626,7 +628,7 @@ jobs:
626628 name : Tendermint Tests
627629 needs : detect-changes
628630 runs-on : ubuntu-22.04
629- if : github.event.pull_request_target .draft != true && needs.detect-changes.outputs.tendermint == 'true'
631+ if : github.event.pull_request .draft != true && needs.detect-changes.outputs.tendermint == 'true'
630632 steps :
631633 - name : Get User Permission
632634 id : checkAccess
@@ -645,7 +647,7 @@ jobs:
645647
646648 - uses : actions/checkout@v3
647649 with :
648- ref : ${{ github.event.pull_request_target .head.sha }}
650+ ref : ${{ github.event.pull_request .head.sha }}
649651 token : ${{ secrets.GH_TOKEN }}
650652 submodules : recursive
651653
@@ -707,7 +709,7 @@ jobs:
707709 name : Pharos Tests
708710 needs : detect-changes
709711 runs-on : ubuntu-22.04
710- if : github.event.pull_request_target .draft != true && needs.detect-changes.outputs.pharos == 'true'
712+ if : github.event.pull_request .draft != true && needs.detect-changes.outputs.pharos == 'true'
711713 steps :
712714 - name : Get User Permission
713715 id : checkAccess
@@ -726,7 +728,7 @@ jobs:
726728
727729 - uses : actions/checkout@v3
728730 with :
729- ref : ${{ github.event.pull_request_target .head.sha }}
731+ ref : ${{ github.event.pull_request .head.sha }}
730732 token : ${{ secrets.GH_TOKEN }}
731733 submodules : recursive
732734
0 commit comments