.github/: skip file conflicts check if no packages are built

workflow was limited to branches modifying srcpkgs/, but this
still triggered when modifying only update files or removing template
This commit is contained in:
Piotr Wójcik 2022-05-10 18:58:53 +02:00
parent 722a6924b0
commit 2381637340
1 changed files with 4 additions and 2 deletions

View File

@ -105,8 +105,10 @@ jobs:
- name: Check file conflicts
if: matrix.config.arch == 'x86_64' # the arch indexed in xlocate
run: |
xlocate -S &&
common/scripts/lint-conflicts $HOME/hostdir/binpkgs
if [ -s /tmp/templates ]; then
xlocate -S &&
common/scripts/lint-conflicts $HOME/hostdir/binpkgs
fi
- name: Verify repository state
run: |