Skip to content

Commit 8898e75

Browse files
authored
Specify branch to test (#761)
1 parent 92fdf94 commit 8898e75

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/test-android.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
- main
66
pull_request:
77
workflow_dispatch:
8+
inputs:
9+
branch:
10+
description: "Branch to test"
11+
required: false
12+
default: "main"
13+
type: string
814

915
concurrency:
1016
group: ${{ github.workflow }}-${{ github.ref }}
@@ -28,6 +34,8 @@ jobs:
2834
steps:
2935
- name: Checkout project sources
3036
uses: actions/checkout@v6
37+
with:
38+
ref: ${{ inputs.branch || github.ref }}
3139

3240
- name: Setup Java
3341
uses: actions/setup-java@v5

.github/workflows/test-ios.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
# https://crontab.guru/
66
- cron: "0 0 * * *"
77
workflow_dispatch:
8+
inputs:
9+
branch:
10+
description: "Branch to test"
11+
required: false
12+
default: "main"
13+
type: string
814

915
concurrency:
1016
group: ${{ github.workflow }}-${{ github.ref }}
@@ -23,6 +29,8 @@ jobs:
2329
steps:
2430
- name: Checkout project sources
2531
uses: actions/checkout@v6
32+
with:
33+
ref: ${{ inputs.branch || github.ref }}
2634

2735
- name: Setup Docker on macOS
2836
uses: douglascamata/[email protected]

0 commit comments

Comments
 (0)