Skip to content

Commit f8324bf

Browse files
committed
gh: adapt triggers to avoid running actions on forked repo
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
1 parent ad45246 commit f8324bf

7 files changed

Lines changed: 38 additions & 21 deletions

File tree

‎.github/workflows/completion_tests.yaml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ name: completion-tests
22

33
on:
44
push:
5-
branches-ignore:
6-
- c-main
7-
- c-3.2
5+
branches:
6+
- main
7+
- v*.*.x
88
pull_request:
9+
branches:
10+
- main
11+
- v*.*.x
912

1013
permissions:
1114
contents: read

‎.github/workflows/easybuild_tests.yaml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ name: easybuild-tests
22

33
on:
44
push:
5-
branches-ignore:
6-
- c-main
7-
- c-3.2
5+
branches:
6+
- main
7+
- v*.*.x
88
pull_request:
9+
branches:
10+
- main
11+
- v*.*.x
912

1013
permissions:
1114
contents: read

‎.github/workflows/lint_tests.yaml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ name: lint-tests
22

33
on:
44
push:
5-
branches-ignore:
6-
- c-main
7-
- c-3.2
5+
branches:
6+
- main
7+
- v*.*.x
88
pull_request:
9+
branches:
10+
- main
11+
- v*.*.x
912

1013
permissions:
1114
contents: read

‎.github/workflows/linux_tests.yaml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ name: linux-tests
22

33
on:
44
push:
5-
branches-ignore:
6-
- c-main
7-
- c-3.2
5+
branches:
6+
- main
7+
- v*.*.x
88
pull_request:
9+
branches:
10+
- main
11+
- v*.*.x
912

1013
permissions:
1114
contents: read

‎.github/workflows/macos_tests.yaml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ name: macos-tests
22

33
on:
44
push:
5-
branches-ignore:
6-
- c-main
7-
- c-3.2
5+
branches:
6+
- main
7+
- v*.*.x
88
pull_request:
9+
branches:
10+
- main
11+
- v*.*.x
912

1013
permissions:
1114
contents: read

‎.github/workflows/windows_tests.yaml‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ name: windows-tests
22

33
on:
44
push:
5-
branches-ignore:
6-
- c-main
7-
- c-3.2
5+
branches:
6+
- main
7+
- v*.*.x
88
pull_request:
9+
branches:
10+
- main
11+
- v*.*.x
912

1013
permissions:
1114
contents: read

‎doc/source/devel/ci.rst‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ All of the above live under :file:`.github/workflows/`.
5050
.. _ClusterFuzzLite: https://google.github.io/clusterfuzzlite/
5151

5252
Every build/test workflow (all except :file:`differential_shellcheck.yml`,
53-
:file:`scorecard.yml` and :file:`cflite.yml`) triggers on ``push`` to any
54-
branch except ``c-main`` and ``c-3.2`` (legacy imported-history branches
55-
that are not active development targets) and on every ``pull_request``.
53+
:file:`scorecard.yml` and :file:`cflite.yml`) triggers on ``push`` and
54+
``pull_request``, both restricted to ``main`` and ``v*.*.x`` branches.
5655

5756
Build/test workflows
5857
---------------------

0 commit comments

Comments
 (0)