Skip to content

Commit c3ebc53

Browse files
KyllianAubryGitHub Enterprise
authored andcommitted
SKA-820: add on workflow call (#76)
1 parent f14e030 commit c3ebc53

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed

.github/workflows/trigger-adapters-ci.yaml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
name: trigger sil-kit-adapters-ci
22
on:
3-
workflow_dispatch:
3+
workflow_call:
4+
inputs:
5+
common_repo_commit:
6+
required: false
7+
type: string
8+
branch_under_test:
9+
required: false
10+
type: string
11+
linux_runner:
12+
required: true
13+
type: string
14+
default: '["self-hosted", "linux", "ska", "testing"]'
415
pull_request:
516
types: [opened, reopened, synchronize]
617

@@ -12,11 +23,13 @@ jobs:
1223
trigger-adapters-ci:
1324
uses: pnd/sil-kit-adapters-ci-testing/.github/workflows/sil-kit-adapters-ci.yaml@main
1425
with:
15-
repository_under_test : ${{ github.repository }}
16-
branch_under_test: ${{ github.event.pull_request.head.ref }}
26+
repository_under_test : 'pnd/sil-kit-adapters-generic-linux-io'
27+
branch_under_test: ${{ inputs.branch_under_test != '' && inputs.branch_under_test || (github.event_name == 'pull_request' && github.event.pull_request.head.ref || 'main') }}
28+
common_repo_commit: ${{ inputs.common_repo_commit }}
1729
linux_scripts: |
1830
advalues/demos/CANoe4SW_SE/run_all.sh
1931
chardev/demos/CANoe4SW_SE/run_all.sh
2032
gpio/demos/CANoe4SW_SE/run_all.sh
2133
adapter/demos/CANoe4SW_SE/run_all.sh
34+
linux_runner: ${{ inputs.linux_runner != '' && inputs.linux_runner || '["self-hosted", "linux", "ska", "testing"]' }}
2235
secrets: inherit

0 commit comments

Comments
 (0)