aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows/sort.yml
diff options
context:
space:
mode:
authorLibravatar rusty-snake <41237666+rusty-snake@users.noreply.github.com>2020-11-29 14:04:22 +0000
committerLibravatar GitHub <noreply@github.com>2020-11-29 14:04:22 +0000
commit4b0b7ec216ec1a1f337a3a37b2c514bcd6842629 (patch)
treebb9c139f63e47dc2d6cd8c30f4369f5f7ce19128 /.github/workflows/sort.yml
parentFix building C# projects in Godot (#3778) (diff)
downloadfirejail-4b0b7ec216ec1a1f337a3a37b2c514bcd6842629.tar.gz
firejail-4b0b7ec216ec1a1f337a3a37b2c514bcd6842629.tar.zst
firejail-4b0b7ec216ec1a1f337a3a37b2c514bcd6842629.zip
Update build.yml (#3779)
* Update build.yml Currently we run all actions for all commits. This is not resource friendly. Let's tweak this a bit. This commit adds support for "skip ci" tags (i.e. if the head commit contains [s k i p c i] (w/o the extra spaces used to escape here), no jobs are executed. In addition are all commits which modify non-code files (e.g. README) only excluded. Furthermore we should not run cppcheck and scan-build if only profiles are changed and sort.py need only to be execute if profiles are changed. * Create sort.yml * Update build.yml profile-sort is now in sort.yml * Update sort.yml fix syntax * Update codeql-analysis.yml paths-ignore: - CONTRIBUTING.md - README - README.md - RELNOTES - SECURITY.md - 'etc/**' * Create build-extra.yml * Update build.yml * Update build-extra.yml
Diffstat (limited to '.github/workflows/sort.yml')
-rw-r--r--.github/workflows/sort.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/sort.yml b/.github/workflows/sort.yml
new file mode 100644
index 000000000..55ac065b6
--- /dev/null
+++ b/.github/workflows/sort.yml
@@ -0,0 +1,21 @@
1name: sort.py
2
3on:
4 push:
5 branches: [ master ]
6 paths:
7 - 'etc/**'
8 pull_request:
9 branches: [ master ]
10 paths:
11 - 'etc/**'
12
13jobs:
14 profile-sort:
15 if: ${{ ! contains(github.event.commits[0].message, '[skip ci]') }}
16 runs-on: ubuntu-20.04
17 steps:
18 - uses: actions/checkout@v2
19 - name: check profiles
20 run: ./contrib/sort.py etc/*/{*.inc,*.profile}
21