31
31
repository : " ${{ github.repository_owner }}/refinery-submodule-parent-images"
32
32
33
33
pi-update-submodule :
34
- name : ' Parent Images: Submodules '
34
+ name : ' Parent Images: Submodule '
35
35
runs-on : ubuntu-latest
36
36
needs : [pi-matrix, configure-branch-name]
37
37
environment : dev
82
82
--repo ${{ github.repository_owner }}/refinery-${{ matrix.parent_image_type }}-parent-image
83
83
84
84
pi-update-app :
85
- name : ' Parent Images: ' # suffix populated by matrix
85
+ name : ' Parent Images: App '
86
86
runs-on : ubuntu-latest
87
- needs : [pi-matrix, configure-branch-name]
87
+ needs : [pi-matrix, configure-branch-name, pi-update-submodule ]
88
88
environment : dev
89
89
continue-on-error : true
90
90
env :
@@ -108,8 +108,16 @@ jobs:
108
108
run : python -m pip install pip-tools
109
109
110
110
- name : Clone ${{ matrix.app }}
111
- run : git clone https://oauth2:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository_owner }}/${{ matrix.app }}.git
112
-
111
+ run : |
112
+ git clone https://oauth2:${{ secrets.GH_TOKEN }}@github.com/${{ github.repository_owner }}/${{ matrix.app }}.git
113
+ cd ${{ matrix.app }}
114
+
115
+ git config user.email "devtools@kern.ai"
116
+ git config user.name "GitHub Actions"
117
+
118
+ git checkout -b ${{ needs.configure-branch-name.outputs.gh_head_ref }} || git checkout ${{ needs.configure-branch-name.outputs.gh_head_ref }}
119
+ git pull origin ${{ needs.configure-branch-name.outputs.gh_head_ref }} && git push origin ${{ needs.configure-branch-name.outputs.gh_head_ref }}
120
+
113
121
- name : Compile Requirements
114
122
run : |
115
123
pip-compile --quiet \
@@ -124,14 +132,8 @@ jobs:
124
132
run : |
125
133
cd ${{ matrix.app }}
126
134
127
- git config user.email "devtools@kern.ai"
128
- git config user.name "GitHub Actions"
129
-
130
- git checkout -b ${{ needs.configure-branch-name.outputs.gh_head_ref }} || git checkout ${{ needs.configure-branch-name.outputs.gh_head_ref }}
131
- git push origin ${{ needs.configure-branch-name.outputs.gh_head_ref }} && git pull origin ${{ needs.configure-branch-name.outputs.gh_head_ref }}
132
-
133
135
git add requirements*
134
- git commit -m "ci: update ${{ matrix.parent_image_type }}-requirements.txt"
136
+ git commit -m "ci: update ${{ matrix.parent_image_type }}-requirements.txt" || true
135
137
git push origin ${{ needs.configure-branch-name.outputs.gh_head_ref }}
136
138
echo "::notice::${{ matrix.app }} updated to origin/${{ needs.configure-branch-name.outputs.gh_head_ref }}"
137
139
0 commit comments