7676 if : steps.local.outputs.tag != steps.latest.outputs.tag
7777 run : git --no-pager diff --color=always
7878
79+ - name : PR summary
80+ id : prsummary
81+ if : steps.local.outputs.tag != steps.latest.outputs.tag
82+ # Needs to be a single line string
83+ # https://trstringer.com/github-actions-multiline-strings/#option-1---string-substitution
84+ run : |
85+ pip install PyGithub
86+ PR_LIST=$(./scripts/get-prs.py ${{matrix.repository}} ${{steps.local.outputs.tag}} ${{steps.latest.outputs.tag}} --github-action-escape)
87+ echo "::set-output name=prs::$PR_LIST"
88+ env :
89+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
90+
7991 # ref: https://github.com/peter-evans/create-pull-request
8092 - name : Create a PR
8193 uses :
peter-evans/[email protected] 93105 body : |
94106 Updates mybinder to depend on the `${{ matrix.registry }}/${{ matrix.repository }}` image version `${{ steps.latest.outputs.tag }}` from version `${{ steps.local.outputs.tag }}`.
95107
108+ ${{ steps.prsummary.outputs.prs }}
109+
96110 ## Related
97111
98112 - Source code: ${{ matrix.source_url }}
@@ -119,30 +133,35 @@ jobs:
119133 chart_dep_app_changelog_url : " https://github.com/jupyterhub/binderhub/blob/master/CHANGES.md"
120134 chart_dep_source_url : " https://github.com/jupyterhub/binderhub/tree/master/helm-chart"
121135 chart_dep_devel_flag : " --devel"
136+ github_repo : jupyterhub/binderhub
122137
123138 - chart_dep_name : ingress-nginx
124139 chart_dep_chart_changelog_url : " https://github.com/kubernetes/ingress-nginx/tree/main/charts/ingress-nginx#upgrading-chart"
125140 chart_dep_app_changelog_url : " https://github.com/kubernetes/ingress-nginx/blob/master/Changelog.md"
126141 chart_dep_source_url : " https://github.com/kubernetes/ingress-nginx/tree/master/charts/ingress-nginx"
127142 chart_dep_devel_flag : " "
143+ github_repo : " "
128144
129145 - chart_dep_name : prometheus
130146 chart_dep_chart_changelog_url : " https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus#upgrading-chart"
131147 chart_dep_app_changelog_url : " https://github.com/prometheus/prometheus/blob/master/CHANGELOG.md"
132148 chart_dep_source_url : https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus
133149 chart_dep_devel_flag : " "
150+ github_repo : " "
134151
135152 - chart_dep_name : grafana
136153 chart_dep_chart_changelog_url : " https://github.com/grafana/helm-charts/tree/main/charts/grafana#upgrading-an-existing-release-to-a-new-major-version"
137154 chart_dep_app_changelog_url : " https://github.com/grafana/grafana/blob/master/CHANGELOG.md"
138155 chart_dep_source_url : " https://github.com/grafana/helm-charts/tree/main/charts/grafana"
139156 chart_dep_devel_flag : " "
157+ github_repo : " "
140158
141159 - chart_dep_name : cryptnono
142160 chart_dep_chart_changelog_url : " "
143161 chart_dep_app_changelog_url : " "
144162 chart_dep_source_url : " https://github.com/yuvipanda/cryptnono/"
145163 chart_dep_devel_flag : " --devel"
164+ github_repo : " "
146165
147166 steps :
148167 - uses : actions/checkout@v3
@@ -185,6 +204,18 @@ jobs:
185204 - name : git diff
186205 run : git --no-pager diff --color=always
187206
207+ - name : PR summary
208+ id : prsummary
209+ if : matrix.github_repo && (steps.local.outputs.version != steps.latest.outputs.version)
210+ # Needs to be a single line string
211+ # https://trstringer.com/github-actions-multiline-strings/#option-1---string-substitution
212+ run : |
213+ pip install PyGithub
214+ PR_LIST=$(./scripts/get-prs.py ${{matrix.github_repo}} ${{steps.local.outputs.version}} ${{steps.latest.outputs.version}} --github-action-escape)
215+ echo "::set-output name=prs::$PR_LIST"
216+ env :
217+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
218+
188219 # ref: https://github.com/peter-evans/create-pull-request
189220 - name : Create a PR
190221 uses :
peter-evans/[email protected] @@ -207,6 +238,8 @@ jobs:
207238 Chart.yaml's version | `${{ steps.local.outputs.version }}` | `${{ steps.latest.outputs.version }}`
208239 Chart.yaml's appVersion | `${{ steps.local.outputs.appVersion }}` | `${{ steps.latest.outputs.appVersion }}`
209240
241+ ${{ steps.prsummary.outputs.prs }}
242+
210243 ## Related
211244
212245 - Chart source code: ${{ matrix.chart_dep_source_url }}
0 commit comments