Skip to content

Commit 4c0b62f

Browse files
OldManYellsAtCloudotavio
authored andcommitted
firefox: select test target in GitHub workflow
Add input arguments in the GitHub Workflow to be able to select which repository to clone, and which branch to checkout to the build and smoke tests. Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
1 parent 2508cb1 commit 4c0b62f

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/yocto_matrix.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
name: Firefox build- and smoke-test
22

3-
on: workflow_dispatch
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
repository:
7+
description: 'Repository to clone for the workflow'
8+
required: true
9+
default: 'OSSystems'
10+
branch:
11+
description: 'Branch to checkout for the workflow'
12+
required: true
13+
default: 'master'
414

515
permissions:
616
contents: read
@@ -30,8 +40,8 @@ jobs:
3040
mkdir -p /yocto/${{ matrix.yocto_version }}
3141
cd /yocto/${{ matrix.yocto_version }}
3242
rm -rf meta-browser meta-firefox-test
33-
git clone $GITHUB_SERVER_URL/$GITHUB_REPOSITORY
34-
git -C meta-browser checkout $GITHUB_HEAD_REF
43+
git clone $GITHUB_SERVER_URL/${{ github.event.inputs.repository }}/meta-browser
44+
git -C meta-browser checkout ${{ github.event.inputs.branch }}
3545
# clone the test repo
3646
git clone https://github.com/OldManYellsAtCloud/meta-firefox-test.git
3747
./meta-firefox-test/scripts/build.sh ${{ matrix.yocto_version}} ${{ matrix.arch }} ${{ matrix.ff_version }} ${{ matrix.libc_flavour}}

0 commit comments

Comments
 (0)