Skip to content

Commit

Permalink
fixup! ci: Only run autpkgtests on main, on tags and if a debian file…
Browse files Browse the repository at this point in the history
… is modified
  • Loading branch information
3v1n0 committed Jan 22, 2025
1 parent 38bca52 commit c005292
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-deb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ jobs:
matrix:
ubuntu-version: ${{ fromJSON(needs.define-versions.outputs.ubuntu-versions) }}

# Run autopkgtests only on:
# - Push events to main
# - When a file in the debian subdir is modified
# - When this file is modified
# - On new tags
# - On github release
if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') ||
contains(join(github.event.commits.*.modified), 'debian/') ||
contains(join(github.event.commits.*.modified), '.github/workflows/build-deb.yaml') ||
Expand Down

0 comments on commit c005292

Please sign in to comment.