Add workflow to verify dSYMs.zip is attached on release PRs #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check dSYMs attachment | |
| on: | |
| pull_request: | |
| types: [labeled, edited] | |
| jobs: | |
| check-dsyms: | |
| name: Verify dSYMs.zip is attached | |
| if: contains(github.event.pull_request.labels.*.name, 'release') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check dSYMs.zip in PR description | |
| env: | |
| PR_BODY: ${{ github.event.pull_request.body }} | |
| run: | | |
| if echo "$PR_BODY" | grep -qE 'https://[^ )]*dSYMs\.zip'; then | |
| echo "dSYMs.zip found in PR description." | |
| else | |
| echo "::error::dSYMs.zip is not attached in the PR description. Please attach the dSYMs.zip file before merging." | |
| exit 1 | |
| fi |