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 1616 pi-matrix :
1717 uses : code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_matrix.yml@parent-images
1818 secrets : inherit
19+ with :
20+ repository : " ${{ github.repository_owner }}/refinery-submodule-parent-images"
1921
2022 pi-build :
2123 name : ' Parent Images: Docker Build'
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ name: 'Parent Images: Matrix'
33on :
44 workflow_call :
55 inputs :
6+ repository :
7+ description : ' Repository for actions/checkout'
8+ required : false
9+ type : string
10+ default : ${{ github.repository }}
611 parent_image_type :
712 description : ' If specified, "include" only outputs apps associated to this parent image type'
813 required : false
@@ -30,14 +35,11 @@ jobs:
3035 - name : Checkout Repository
3136 uses : actions/checkout@v4
3237 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 }}
3540
36- - name : GitHub Configuration
37- run : git config --global url."https://oauth2:${{ secrets.GH_TOKEN }}@github.com".insteadOf https://github.com
38-
3941 - 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
4143
4244 - name : Generate Matrix
4345 id : generate-matrix
Original file line number Diff line number Diff line change 1616 pi-matrix :
1717 uses : code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_matrix.yml@parent-images
1818 secrets : inherit
19+ with :
20+ repository : " ${{ github.repository_owner }}/refinery-submodule-parent-images"
1921
2022 pi-update-submodule :
2123 name : ' Parent Images: Submodules'
Original file line number Diff line number Diff line change 1717 uses : code-kern-ai/cicd-deployment-scripts/.github/workflows/pi_matrix.yml@parent-images
1818 secrets : inherit
1919 with :
20+ repository : ${{ github.repository }}
2021 parent_image_type : ${{ vars.PARENT_IMAGE_TYPE }}
2122
2223 pi-edit :
You can’t perform that action at this time.
0 commit comments