Skip to content

Commit 6902102

Browse files
gromakovskyrvem
authored andcommitted
Trigger CI on push to master and on PR
Problem: CI is triggered only on push, so it won't work in case of PRs from forks. Solution: trigger it on PRs as well. Trigger on push only when the branch is master. If you want to run on push to your feature branch, you can edit check.yml in your branch.
1 parent 6edacff commit 6902102

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/check.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22
#
33
# SPDX-License-Identifier: MPL-2.0
44
name: Nix flake check
5-
on: push
5+
on:
6+
pull_request:
7+
push:
8+
branches: master
69

710
jobs:
811
validate:

0 commit comments

Comments
 (0)