From e217d62f42503aabe217614518a79041c17a0f86 Mon Sep 17 00:00:00 2001
From: Adrian Castro <22133246+castdrian@users.noreply.github.com>
Date: Sun, 2 Aug 2026 13:44:59 +0200
Subject: [PATCH] chore(ci): add iOS build metadata to artifact comment
---
.github/workflows/ios-artifact-comment.yml | 16 +++++++++++++---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/ios-artifact-comment.yml b/.github/workflows/ios-artifact-comment.yml
index 7a3fe8b7..e7bbc6e6 100644
--- a/.github/workflows/ios-artifact-comment.yml
+++ b/.github/workflows/ios-artifact-comment.yml
@@ -28,16 +28,26 @@ jobs:
[ -n "$pr_number" ] || exit 0
echo "artifact_url=https://github.com/$GITHUB_REPOSITORY/actions/runs/$RUN_ID/artifacts/$artifact_id" >> "$GITHUB_OUTPUT"
echo "pr_number=$pr_number" >> "$GITHUB_OUTPUT"
+ - name: Get build info
+ id: build-info
+ env:
+ HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
+ run: |
+ commit_hash="$(printf '%s' "$HEAD_SHA" | cut -c1-7)"
+ build_time="$(date "+%Y-%m-%d %H:%M:%S")"
+ echo "hash=$commit_hash" >> "$GITHUB_OUTPUT"
+ echo "time=$build_time" >> "$GITHUB_OUTPUT"
- name: comment iOS artifact
if: steps.artifact.outputs.pr_number != ''
uses: thollander/actions-comment-pull-request@v3
with:
message: |
- #### iOS Release IPA
+ [gen1recomp.ipa](${{ steps.artifact.outputs.artifact_url }})
- - [Download gen1recomp.ipa](${{ steps.artifact.outputs.artifact_url }})
+ **Commit**: [#${{ steps.build-info.outputs.hash }}](https://github.com/${{ github.event.workflow_run.head_repository.full_name }}/commit/${{ github.event.workflow_run.head_sha }})
+ **Build Time**: `${{ steps.build-info.outputs.time }}`
- Automatically generated. [View workflow run](https://github.com/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }})
+ This comment was automatically generated. [View workflow run](https://github.com/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }})
pr-number: ${{ steps.artifact.outputs.pr_number }}
comment-tag: ios-build-result
github-token: ${{ github.token }}