mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
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:
parent
6b56075df8
commit
139a296bd3
3 changed files with 104 additions and 109 deletions
21
.github/workflows/android.yml
vendored
21
.github/workflows/android.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue