Change CI trigger label prefix from `ci/` to `run-ci/`. (#13849)
* Change CI trigger label prefix from `ci/` to `run-ci/`. This way it better describes what it’s doing * Update .github/workflows/packaging.yml Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud> Co-authored-by: Ilya Mashchenko <ilya@netdata.cloud>
Austin S. Hemmelgarn committed
Oct 18, 2022 at 10:50 UTC
48e7a6613054dafcc3a1910ef85ef7e2a03be93d
3 files changed
+7
-7
.github/workflows/codeql.yml
+1
-1
@@ -31,7 +31,7 @@ jobs:
31
id: always
32
run: |
33
if [ "${{ github.event_name }}" = "pull_request" ]; then
34
- if [ "${{ contains(github.event.pull_request.labels.*.name, 'ci/codeql') }}" = "true" ]; then
34
+ if [ "${{ contains(github.event.pull_request.labels.*.name, 'run-ci/codeql') }}" = "true" ]; then
35
echo '::set-output name=run::true'
36
echo '::notice::Found ci/codeql label, unconditionally running all CodeQL checks.'
37
else
.github/workflows/packaging.yml
+1
-1
@@ -58,7 +58,7 @@ jobs:
58
with open('.github/data/distros.yml') as f:
59
data = yaml.load(f)
60
61
- if "${{ github.event_name }}" == "pull_request" and "${{ contains(github.event.pull_request.labels.*.name, 'ci/packaging') }}" != "true":
61
+ if "${{ github.event_name }}" == "pull_request" and "${{ !contains(github.event.pull_request.labels.*.name, 'run-ci/packaging') }}":
62
run_limited = True
63
64
for i, v in enumerate(data['include']):
.github/workflows/review.yml
+5
-5
@@ -28,7 +28,7 @@ jobs:
28
- name: Check files for actionlint
29
id: actionlint
30
run: |
31
- if [ "${{ contains(github.event.pull_request.labels.*.name, 'ci/actionlint') }}" = "true" ]; then
31
+ if [ "${{ contains(github.event.pull_request.labels.*.name, 'run-ci/actionlint') }}" = "true" ]; then
32
echo '::set-output name=run::true'
33
elif git diff --name-only origin/${{ github.base_ref }} HEAD | grep -Eq '\.github/workflows/.*' ; then
34
echo '::set-output name=run::true'
@@ -39,7 +39,7 @@ jobs:
39
- name: Check files for eslint
40
id: eslint
41
run: |
42
- if [ "${{ contains(github.event.pull_request.labels.*.name, 'ci/eslint') }}" = "true" ]; then
42
+ if [ "${{ contains(github.event.pull_request.labels.*.name, 'run-ci/eslint') }}" = "true" ]; then
43
echo '::set-output name=run::true'
44
elif git diff --name-only origin/${{ github.base_ref }} HEAD | grep -v "web/gui/dashboard" | grep -Eq '.*\.js|node\.d\.plugin\.in' ; then
45
echo '::set-output name=run::true'
@@ -50,7 +50,7 @@ jobs:
50
- name: Check files for hadolint
51
id: hadolint
52
run: |
53
- if [ "${{ contains(github.event.pull_request.labels.*.name, 'ci/hadolint') }}" = "true" ]; then
53
+ if [ "${{ contains(github.event.pull_request.labels.*.name, 'run-ci/hadolint') }}" = "true" ]; then
54
echo '::set-output name=run::true'
55
elif git diff --name-only origin/${{ github.base_ref }} HEAD | grep -Eq '.*Dockerfile.*' ; then
56
echo '::set-output name=run::true'
@@ -61,7 +61,7 @@ jobs:
61
- name: Check files for shellcheck
62
id: shellcheck
63
run: |
64
- if [ "${{ contains(github.event.pull_request.labels.*.name, 'ci/shellcheck') }}" = "true" ]; then
64
+ if [ "${{ contains(github.event.pull_request.labels.*.name, 'run-ci/shellcheck') }}" = "true" ]; then
65
echo '::set-output name=run::true'
66
elif git diff --name-only origin/${{ github.base_ref }} HEAD | grep -Eq '.*\.sh.*' ; then
67
echo '::set-output name=run::true'
@@ -72,7 +72,7 @@ jobs:
72
- name: Check files for yamllint
73
id: yamllint
74
run: |
75
- if [ "${{ contains(github.event.pull_request.labels.*.name, 'ci/yamllint') }}" = "true" ]; then
75
+ if [ "${{ contains(github.event.pull_request.labels.*.name, 'run-ci/yamllint') }}" = "true" ]; then
76
echo '::set-output name=run::true'
77
elif git diff --name-only origin/${{ github.base_ref }} HEAD | grep -Eq '.*\.ya?ml|python\.d/.*\.conf' ; then
78
echo '::set-output name=run::true'