Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-FileCopyrightText: 2025 Alper Ozturk <[email protected]>
# SPDX-FileCopyrightText: 2020-2024 Stefan Niedermann <[email protected]>
# SPDX-FileCopyrightText: 2023 Álvaro Brey <[email protected]>
# SPDX-License-Identifier: GPL-3.0-or-later
Expand All @@ -12,6 +13,7 @@ on:

permissions:
contents: read
pull-requests: write

jobs:
validation:
Expand Down Expand Up @@ -78,3 +80,21 @@ jobs:
with:
name: app-dev-debug
path: app/build/outputs/apk/dev/debug/app-dev-debug.apk

- name: Comment on PR with artifact link
if: github.event_name == 'pull_request'
uses: actions/github-script@v7
with:
script: |
const runId = process.env.GITHUB_RUN_ID;
const repo = context.repo.repo;
const owner = context.repo.owner;
const prNumber = context.payload.pull_request.number;
const artifactUrl = `https://github.com/${owner}/${repo}/actions/runs/${runId}`;

github.rest.issues.createComment({
owner,
repo,
issue_number: prNumber,
body: `🎉 Debug APK built and uploaded! You can download it from the [workflow artifacts](${artifactUrl}).`
});
Loading