Skip to content

Commit 9e194ff

Browse files
committed
perf: include repository input
1 parent 458a1c7 commit 9e194ff

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

.github/workflows/pi_build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
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'

.github/workflows/pi_matrix.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: 'Parent Images: Matrix'
33
on:
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

.github/workflows/pi_merge.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
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'

.github/workflows/pi_release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
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:

0 commit comments

Comments
 (0)