Skip to content

Commit bc40fa5

Browse files
committed
allow repo and branch parameters
1 parent 6ec8b76 commit bc40fa5

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/web-install.yml

+15-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ name: Moodle web installation testing
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
repository:
7+
description: 'Repository to clone'
8+
required: true
9+
branch:
10+
description: 'Branch to clone'
11+
required: true
512
push:
613
branches:
714
- main
@@ -52,8 +59,14 @@ jobs:
5259
ini-values: max_input_vars=5000
5360
coverage: none
5461

55-
- name: Clone Moodle repository
56-
run: git clone https://git.in.moodle.com/moodle/integration.git moodle
62+
# - name: Clone Moodle repository
63+
# run: git clone https://git.in.moodle.com/moodle/integration.git moodle
64+
- name: Clone moodle site repository and branch
65+
uses: actions/checkout@v4
66+
with:
67+
repository: ${{ github.event.inputs.repository }}
68+
ref: ${{ github.event.inputs.branch }}
69+
path: moodle
5770

5871
- name: Clone Plugin repository
5972
uses: actions/checkout@v4

0 commit comments

Comments
 (0)