Skip to content

Commit ff1e7b0

Browse files
committed
ci: trigger workflows only once for pull requests
When pushing to a pull request branch, the CI has been triggered twice. Once by the push and once by the pull_request event. This changes the workflow to trigger only on pushes to main or changes to any pull requests targeting main.
1 parent b9126de commit ff1e7b0

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/moodle-ci.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: Moodle Plugin CI
2-
on: [ push, pull_request ]
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
310

411
jobs:
512
call-moodle-ci:
13+
name: "Run CI workflow for Learnweb plugins"
614
uses: learnweb/moodle-workflows-learnweb/.github/workflows/moodle-ci.yml@main

0 commit comments

Comments
 (0)