Skip to content

Commit a7031a1

Browse files
committed
fix: use raw.githubusercontent.com URLs for PR screenshot images
1 parent 6631dbf commit a7031a1

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

actions/design-to-code/action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,17 @@ runs:
189189
echo "Figma: ${FIGMA_URL}"
190190
} > /tmp/pr-body.md
191191
192+
REPO="${{ github.repository }}"
193+
RAW_BASE="https://raw.githubusercontent.com/${REPO}/${BRANCH}"
194+
192195
if [ "$HAS_SCREENSHOT" = "true" ] && [ "$HAS_CAPTURE" = "true" ]; then
193196
{
194197
echo ""
195198
echo "### Screenshot Comparison"
196199
echo ""
197200
echo "| Figma (original) | AI (generated) |"
198201
echo "|:---:|:---:|"
199-
echo "| ![Figma](.github/design-comparison/figma-screenshot.png) | ![AI](.github/design-comparison/implementation-screenshot.png) |"
202+
echo "| ![Figma](${RAW_BASE}/.github/design-comparison/figma-screenshot.png) | ![AI](${RAW_BASE}/.github/design-comparison/implementation-screenshot.png) |"
200203
} >> /tmp/pr-body.md
201204
fi
202205

0 commit comments

Comments
 (0)