Skip to content

Commit

Permalink
ci: Only run autpkgtests on main, on tags and if a debian file is mod…
Browse files Browse the repository at this point in the history
…ified
  • Loading branch information
3v1n0 committed Dec 19, 2024
1 parent 8962d19 commit f2aecf5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/build-deb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ jobs:
matrix:
ubuntu-version: ${{ fromJSON(needs.define-versions.outputs.ubuntu-versions) }}

if: ${{ (github.event_name == 'push' && github.ref == 'refs/heads/main') ||
contains(join(github.event.commits.*.modified), 'debian/') ||
startsWith(github.ref, 'refs/tags/') ||
github.event_name == 'release' }}

steps:
- name: Download artifacts
uses: actions/download-artifact@v4
Expand Down

0 comments on commit f2aecf5

Please sign in to comment.