File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -164,11 +164,18 @@ jobs:
164164 env :
165165 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
166166 run : |
167- gh pr comment ${{ needs.build.outputs.pr_number }} --repo "${{ needs.build.outputs.target_repo }}" --body-file - <<EOF
167+ if gh pr comment ${{ needs.build.outputs.pr_number }} --repo "${{ needs.build.outputs.target_repo }}" --body-file - <<EOF
168168 ## Docker Image Sizes
169169
170170 | Image | Size |
171171 |-------|------|
172172 | app-bricks/python-base | ${{ needs.build.outputs.python_base_size }} |
173173 | app-bricks/python-apps-base | ${{ needs.build.outputs.python_apps_base_size }} |
174- EOF
174+ EOF
175+ then
176+ echo "✅ Comment posted successfully"
177+ else
178+ echo "⚠️ Could not post comment (likely permission issue for cross-repo commenting)"
179+ echo "Image sizes are available in the job summary of the build-images job"
180+ exit 0
181+ fi
You can’t perform that action at this time.
0 commit comments