File tree Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Expand file tree Collapse file tree 4 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 16
16
pi-matrix :
17
17
uses : code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_matrix.yml@parent-images
18
18
secrets : inherit
19
+ with :
20
+ repository : " ${{ github.repository_owner }}/refinery-submodule-parent-images"
19
21
20
22
pi-build :
21
23
name : ' Parent Images: Docker Build'
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ name: 'Parent Images: Matrix'
3
3
on :
4
4
workflow_call :
5
5
inputs :
6
+ repository :
7
+ description : ' Repository for actions/checkout'
8
+ required : false
9
+ type : string
10
+ default : ${{ github.repository }}
6
11
parent_image_type :
7
12
description : ' If specified, "include" only outputs apps associated to this parent image type'
8
13
required : false
@@ -30,14 +35,11 @@ jobs:
30
35
- name : Checkout Repository
31
36
uses : actions/checkout@v4
32
37
with :
33
- repository : ${{ github.repository_owner }}/refinery-submodule-parent-images
34
- ref : ${{ github.event.pull_request.head.ref }}
38
+ repository : ${{ inputs.repository }}/refinery-submodule-parent-images
39
+ ref : ${{ github.event.pull_request.head.ref || github.event.repository.default_branch }}
35
40
36
- - name : GitHub Configuration
37
- run : git config --global url."https://oauth2:${{ secrets.GH_TOKEN }}@github.com".insteadOf https://github.com
38
-
39
41
- name : Clone cicd-deployment-scripts
40
- run : git clone --branch parent-images https://github.com/code-kern-ai/cicd-deployment-scripts.git
42
+ run : git clone --branch parent-images https://oauth2:${{ secrets.GH_TOKEN }}@ github.com/code-kern-ai/cicd-deployment-scripts.git
41
43
42
44
- name : Generate Matrix
43
45
id : generate-matrix
Original file line number Diff line number Diff line change 16
16
pi-matrix :
17
17
uses : code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_matrix.yml@parent-images
18
18
secrets : inherit
19
+ with :
20
+ repository : " ${{ github.repository_owner }}/refinery-submodule-parent-images"
19
21
20
22
pi-update-submodule :
21
23
name : ' Parent Images: Submodules'
Original file line number Diff line number Diff line change 17
17
uses : code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_matrix.yml@parent-images
18
18
secrets : inherit
19
19
with :
20
+ repository : ${{ github.repository }}
20
21
parent_image_type : ${{ vars.PARENT_IMAGE_TYPE }}
21
22
22
23
pi-edit :
You can’t perform that action at this time.
0 commit comments