aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/build-extra.yml
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-08-14 19:51:27 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-08-20 06:20:40 -0300
commitb589045b0fde572b892b8fe9333e2148f6b28452 (patch)
treefbb575d093d2eefe5ae8e9b865e462ea76b81576 /.github/workflows/build-extra.yml
parentMerge pull request #5956 from kmk3/build-fix-dep-syntax (diff)
downloadfirejail-b589045b0fde572b892b8fe9333e2148f6b28452.tar.gz
firejail-b589045b0fde572b892b8fe9333e2148f6b28452.tar.zst
firejail-b589045b0fde572b892b8fe9333e2148f6b28452.zip
ci: use path whitelists instead of blacklists
That is, replace `paths-ignore` with `paths`. This should reduce the number of unnecessary workflow executions and the frequency at which paths are changed. It also reduces the overall number of paths used. Also, add the missing ci/printenv.sh to the path whitelists.
Diffstat (limited to '.github/workflows/build-extra.yml')
-rw-r--r--.github/workflows/build-extra.yml70
1 files changed, 26 insertions, 44 deletions
diff --git a/.github/workflows/build-extra.yml b/.github/workflows/build-extra.yml
index 3fc71a299..f35a7d3d3 100644
--- a/.github/workflows/build-extra.yml
+++ b/.github/workflows/build-extra.yml
@@ -2,51 +2,33 @@ name: Build-extra CI
2 2
3on: 3on:
4 push: 4 push:
5 paths-ignore: 5 paths:
6 - '.github/ISSUE_TEMPLATE/*' 6 - 'm4/**'
7 - 'contrib/syntax/**' 7 - 'src/**.c'
8 - 'contrib/vim/**' 8 - 'src/**.h'
9 - 'etc/**' 9 - 'src/**.mk'
10 - 'src/man/*.in' 10 - 'src/**Makefile'
11 - .git-blame-ignore-revs 11 - .github/workflows/build-extra.yml
12 - .github/dependabot.yml 12 - Makefile
13 - .github/pull_request_template.md 13 - ci/printenv.sh
14 - .github/workflows/build.yml 14 - config.mk.in
15 - .github/workflows/codeql-analysis.yml 15 - config.sh.in
16 - .github/workflows/codespell.yml 16 - configure
17 - .github/workflows/profile-checks.yml 17 - configure.ac
18 - .gitignore
19 - .gitlab-ci.yml
20 - CONTRIBUTING.md
21 - COPYING
22 - README
23 - README.md
24 - RELNOTES
25 - SECURITY.md
26 - src/firecfg/firecfg.config
27 pull_request: 18 pull_request:
28 paths-ignore: 19 paths:
29 - '.github/ISSUE_TEMPLATE/*' 20 - 'm4/**'
30 - 'contrib/syntax/**' 21 - 'src/**.c'
31 - 'contrib/vim/**' 22 - 'src/**.h'
32 - 'etc/**' 23 - 'src/**.mk'
33 - 'src/man/*.in' 24 - 'src/**Makefile'
34 - .git-blame-ignore-revs 25 - .github/workflows/build-extra.yml
35 - .github/dependabot.yml 26 - Makefile
36 - .github/pull_request_template.md 27 - ci/printenv.sh
37 - .github/workflows/build.yml 28 - config.mk.in
38 - .github/workflows/codeql-analysis.yml 29 - config.sh.in
39 - .github/workflows/codespell.yml 30 - configure
40 - .github/workflows/profile-checks.yml 31 - configure.ac
41 - .gitignore
42 - .gitlab-ci.yml
43 - CONTRIBUTING.md
44 - COPYING
45 - README
46 - README.md
47 - RELNOTES
48 - SECURITY.md
49 - src/firecfg/firecfg.config
50 32
51permissions: # added using https://github.com/step-security/secure-workflows 33permissions: # added using https://github.com/step-security/secure-workflows
52 contents: read 34 contents: read