Skip to content

Commit c29a9fb

Browse files
committed
fixup
1 parent 10da9ef commit c29a9fb

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/calculate-size-delta.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)