Skip to content

Commit 94f0c5f

Browse files
committed
github: fix CI for external contributors
The CI was only triggered on a push to the base repository. External contributors push to a fork where the CI wouldn't trigger.
1 parent 1cfd6b3 commit 94f0c5f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/osrd-ui-build.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Build osrd-ui
22

3-
on: [push]
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
merge_group:
7+
types: [checks_requested]
8+
push:
9+
branches:
10+
- dev
411

512
jobs:
613
build:
@@ -73,7 +80,7 @@ jobs:
7380
if rg -Ul '\n\n\z' .; then
7481
echo "Found multiple final newlines on listed file(s)"
7582
exit 1
76-
fi
83+
fi
7784
7885
check_unit_tests:
7986
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)