Skip to content

Commit

Permalink
Manual upload to Waldo (#4452)
Browse files Browse the repository at this point in the history
  • Loading branch information
g123k authored Aug 8, 2023
1 parent 6e15568 commit 7cccfcd
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/waldo_sessions.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,29 @@
name: Upload builds to Waldo

on:
pull_request_target:
types:
- opened
- edited
- synchronize

workflow_dispatch:
inputs:
repo:
description: 'Repo name (eg: openfoodfacts/smooth-app)'
required: true
type: string
branch:
description: 'Branch name (eg: my-awesome-feature)'
required: true
type: string

jobs:
build:
runs-on: macos-latest
if: "!contains(github.event.pull_request.title, 'chore(deps):')"
defaults:
run:
shell: bash
steps:
- name: "Checkout code"
uses: actions/checkout@v3
with:
repository: ${{ github.event.inputs.repo }}
ref: ${{ github.event.inputs.branch }}
fetch-depth: 0

- name: Setup Java JDK
Expand Down Expand Up @@ -52,11 +58,4 @@ jobs:
uses: waldoapp/gh-action-upload@v1
with:
build_path: packages/smooth_app/build/app/outputs/flutter-apk/app-debug.apk
upload_token: ${{ secrets.WALDO_SESSIONS_ANDROID }}

- name: Write comment
uses: mshick/add-pr-comment@v2
with:
message: "You can test this PR on: [Android](https://app.waldo.com/applications/app-19d476740ba1bb36/sessions])"

# TODO Build the iOS variant and upload it
upload_token: ${{ secrets.WALDO_SESSIONS_ANDROID }}

0 comments on commit 7cccfcd

Please sign in to comment.