Skip to content

Commit d9808e0

Browse files
committed
ci: support non-dev QBEHAVIOUR_QUESTIONPY_COMMIT
1 parent 7cd6300 commit d9808e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/moodle-ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ jobs:
7979
run: |
8080
moodle-plugin-ci add-plugin questionpy-org/moodle-qbehaviour_questionpy --storage extra-plugins
8181
cd extra-plugins/moodle-qbehaviour_questionpy
82+
# The repo is cloned in a way that will only fetch dev, but the commit might not be in dev.
83+
git config --local remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
8284
# To move to a specific commit, we need to unshallow the repo (i.e. fetch all commits).
8385
git fetch --unshallow
8486
git switch --detach "$QBEHAVIOUR_QUESTIONPY_COMMIT"

0 commit comments

Comments
 (0)