Skip to content

Commit f9dde36

Browse files
committed
Add summary step to weekly upstream sync workflow for better visibility of changes
1 parent 95eaa29 commit f9dde36

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

‎.github/workflows/weekly-upstream-sync.yml‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,3 +143,39 @@ jobs:
143143
EOF
144144
145145
echo "✅ Issue created and assigned to Copilot coding agent."
146+
147+
- name: Summary
148+
if: always()
149+
run: |
150+
HAS_CHANGES="${{ steps.check.outputs.has_changes }}"
151+
COMMIT_COUNT="${{ steps.check.outputs.commit_count }}"
152+
LAST_MERGE="${{ steps.check.outputs.last_merge }}"
153+
UPSTREAM_HEAD="${{ steps.check.outputs.upstream_head }}"
154+
155+
{
156+
echo "## Weekly Upstream Sync"
157+
echo ""
158+
if [ "$HAS_CHANGES" = "true" ]; then
159+
echo "### ✅ New upstream changes detected"
160+
echo ""
161+
echo "| | |"
162+
echo "|---|---|"
163+
echo "| **New commits** | ${COMMIT_COUNT} |"
164+
echo "| **Last merged** | \`${LAST_MERGE:0:12}\` |"
165+
echo "| **Upstream HEAD** | \`${UPSTREAM_HEAD:0:12}\` |"
166+
echo ""
167+
echo "An issue has been created and assigned to the Copilot coding agent."
168+
echo ""
169+
echo "### Recent upstream commits"
170+
echo ""
171+
echo '```'
172+
echo "${{ steps.check.outputs.summary }}"
173+
echo '```'
174+
else
175+
echo "### ⏭️ No changes"
176+
echo ""
177+
echo "The Java SDK is already up to date with the upstream Copilot SDK."
178+
echo ""
179+
echo "**Last merged commit:** \`${LAST_MERGE:0:12}\`"
180+
fi
181+
} >> "$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)