Skip to content

Commit 03dcdd9

Browse files
committed
.github/workflows: Added called reference option.
Signed-off-by: jaenrig-ifx <enriquezgarcia.external@infineon.com>
1 parent fdce5b8 commit 03dcdd9

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/compile-examples.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ on:
2222
description: |
2323
'The operating system to use for the CI jobs. Default is "ubuntu-latest" for libraries
2424
and "ubuntu-latest", "windows-latest", and "macos-latest" for cores.'
25+
called-ref:
26+
required: false
27+
type: string
28+
default: 'latest'
29+
description: 'The ref to use for reusable workflow. The same version of the repository tool will be used if specified.'
2530

2631
jobs:
2732
ci-setup:
@@ -41,7 +46,7 @@ jobs:
4146
uses: actions/checkout@v4
4247
with:
4348
repository: Infineon/arduino-devops
44-
ref: latest
49+
ref: ${{ inputs.called-ref }}
4550
path: arduino-devops
4651

4752
- name: Install python dependencies
@@ -111,7 +116,7 @@ jobs:
111116
uses: actions/checkout@v4
112117
with:
113118
repository: Infineon/arduino-devops
114-
ref: latest
119+
ref: ${{ inputs.called-ref }}
115120
path: arduino-devops
116121

117122
- name: Install python dependencies

.github/workflows/release.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
default: ''
1414
type: string
1515
description: 'Version to be used for the release. It can be a semver version or a bump type (major, minor, patch).'
16+
called-ref:
17+
required: false
18+
type: string
19+
default: 'latest'
20+
description: 'The ref to use for reusable workflow. The same version of the repository tool will be used if specified.'
1621
secrets:
1722
release-ssh-key:
1823
required: false
@@ -37,7 +42,7 @@ jobs:
3742
uses: actions/checkout@v4
3843
with:
3944
repository: Infineon/arduino-devops
40-
ref: latest
45+
ref: ${{ inputs.called-ref }}
4146
path: arduino-devops
4247

4348
- name: Install python dependencies

0 commit comments

Comments
 (0)