diff --git a/.github/workflows/waldo_sessions.yml b/.github/workflows/waldo_sessions.yml index 18575fb18cf..3a1e61e1e5d 100644 --- a/.github/workflows/waldo_sessions.yml +++ b/.github/workflows/waldo_sessions.yml @@ -1,16 +1,20 @@ 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 @@ -18,6 +22,8 @@ jobs: - 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 @@ -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 }} \ No newline at end of file