File tree Expand file tree Collapse file tree 3 files changed +21
-30
lines changed Expand file tree Collapse file tree 3 files changed +21
-30
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ concurrency:
21
21
jobs :
22
22
ci-config :
23
23
name : config
24
+ if : vars.CI_BRANCHES == '' || contains(vars.CI_BRANCHES, github.ref_name)
24
25
runs-on : ubuntu-latest
25
26
outputs :
26
27
enabled : ${{ steps.check-ref.outputs.enabled }}${{ steps.skip-if-redundant.outputs.enabled }}
@@ -43,10 +44,13 @@ jobs:
43
44
name : check whether CI is enabled for ref
44
45
run : |
45
46
enabled=yes
46
- if test -x config-repo/ci/config/allow-ref &&
47
- ! config-repo/ci/config/allow-ref '${{ github.ref }}'
47
+ if test -x config-repo/ci/config/allow-ref
48
48
then
49
- enabled=no
49
+ echo "::warning::ci/config/allow-ref is deprecated; use CI_BRANCHES instead"
50
+ if ! config-repo/ci/config/allow-ref '${{ github.ref }}'
51
+ then
52
+ enabled=no
53
+ fi
50
54
fi
51
55
52
56
skip_concurrent=yes
Original file line number Diff line number Diff line change
1
+ You can configure some aspects of the GitHub Actions-based CI on a
2
+ per-repository basis by setting "variables" and "secrets" from with the
3
+ GitHub web interface. These can be found at:
4
+
5
+ https://github.com/<user>/git/settings/secrets/actions
6
+
7
+ The following variables can be used:
8
+
9
+ - CI_BRANCHES
10
+
11
+ By default, CI is run when any branch is pushed. If this variable is
12
+ non-empty, then only the branches it lists will run CI. Branch names
13
+ should be separated by spaces, and should use their shortened form
14
+ (e.g., "main", not "refs/heads/main").
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments