Skip to content

Commit 05068ef

Browse files
feat: add workflow to verify dSYMs.zip is attached on release PRs (#221)
Fails CI if a PR with the 'release' label is missing a dSYMs.zip attachment in its description. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent eee82ba commit 05068ef

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/check-dsyms.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Check dSYMs attachment
2+
3+
on:
4+
pull_request:
5+
types: [labeled, edited]
6+
7+
jobs:
8+
check-dsyms:
9+
name: Verify dSYMs.zip is attached
10+
if: contains(github.event.pull_request.labels.*.name, 'release')
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Check dSYMs.zip in PR description
14+
env:
15+
PR_BODY: ${{ github.event.pull_request.body }}
16+
run: |
17+
if echo "$PR_BODY" | grep -qE 'https://[^ )]*dSYMs\.zip'; then
18+
echo "dSYMs.zip found in PR description."
19+
else
20+
echo "::error::dSYMs.zip is not attached in the PR description. Please attach the dSYMs.zip file before merging."
21+
exit 1
22+
fi

0 commit comments

Comments
 (0)