Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update ondemand workflow & fix CI #4241

Open
wants to merge 2 commits into
base: release/4.0
Choose a base branch
from
Open
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
22 changes: 19 additions & 3 deletions .github/workflows/android-debug-artifact-ondemand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,33 @@ jobs:
arguments: assembleDebug --stacktrace
- name: Upload fdroid artifact
uses: actions/upload-artifact@v4
id: artifact-upload-fdroid
with:
name: Amaze-Fdroid-debug
path: app/build/outputs/apk/fdroid/debug/app-fdroid-debug.apk
if-no-files-found: error
- name: Upload play artifact
uses: actions/upload-artifact@v4
id: artifact-upload-play
with:
name: Amaze-Play-debug
path: app/build/outputs/apk/play/debug/app-play-debug.apk
- name: Notify the user with a comment once the APK is uploaded # TODO: update this with the link to the artifacts
if-no-files-found: error
- name: Get the PR number
id: find-pr-id
run: |
PR_NUMBER=$(jq --raw-output .issue.number "$GITHUB_EVENT_PATH")

echo "PR_Number: $PR_NUMBER"
echo "PR_NUMBER=$PR_NUMBER" >> "$GITHUB_OUTPUT"
- name: Notify the user with a comment once the APK is uploaded
uses: peter-evans/create-or-update-comment@v2
with:
issue-number: ${{ github.event.issue.number }}
issue-number: ${{ steps.find-pr-id.outputs.PR_NUMBER }}
body: |
The requested APKs has been built. Please find them from the artifacts section of this PR.
Requested APKs have been built. Please find them from the links below.

FDroid Flavour: ${{ steps.artifact-upload-fdroid.outputs.artifact-url }}
Play Flavour: ${{ steps.artifact-upload-play.outputs.artifact-url }}

PS: you should be logged in to access the artifacts.
Loading