Comment in PR with generated builds. (#6226)

* revert prior attempt

Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>

* trigger workflows_run event after uploading artifacts

Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>

---------

Signed-off-by: parneet-guraya <gurayaparneet@gmail.com>
This commit is contained in:
Parneet Singh 2025-03-03 18:14:08 +05:30 committed by GitHub
parent 6b56075df8
commit 139a296bd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 104 additions and 109 deletions

View file

@ -1,10 +1,6 @@
name: Android CI
on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
actions: read
on: [push, pull_request, workflow_dispatch]
concurrency:
group: build-${{ github.event.pull_request.number || github.ref }}
@ -106,14 +102,13 @@ jobs:
with:
name: prodDebugAPK
path: app/build/outputs/apk/prod/debug/app-*.apk
- name: Store Workflow Run ID
if: github.event_name == 'pull_request'
run: echo "${{ github.run_id }}" > run_id.txt
- name: Upload Run ID as Artifact
if: github.event_name == 'pull_request'
- name: Create and PR number artifact
run: |
echo "{\"pr_number\": ${{ github.event.pull_request.number || 'null' }}}" > pr_number.json
- name: Upload PR number artifact
uses: actions/upload-artifact@v4
with:
name: run-id
path: run_id.txt
name: pr_number
path: ./pr_number.json