From ae2663c8f568a6902783c78d1d5fd845f2d54b31 Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Wed, 4 Sep 2024 09:07:12 +0200 Subject: [PATCH] ci: allow us to skip builds with "no-ci-builds" label --- .github/workflows/copr-builds.yml | 1 + .github/workflows/fedora-tox.yml | 1 + .packit.yaml | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/.github/workflows/copr-builds.yml b/.github/workflows/copr-builds.yml index 8c5ef9c06..4ad418467 100644 --- a/.github/workflows/copr-builds.yml +++ b/.github/workflows/copr-builds.yml @@ -15,6 +15,7 @@ permissions: jobs: build: + if: !contains(github.event.issue.labels.*.name, 'no-ci-builds') runs-on: ubuntu-latest name: RPM package strategy: diff --git a/.github/workflows/fedora-tox.yml b/.github/workflows/fedora-tox.yml index 7d4064414..effabf945 100644 --- a/.github/workflows/fedora-tox.yml +++ b/.github/workflows/fedora-tox.yml @@ -6,6 +6,7 @@ on: name: Run Tox tests jobs: tox_test: + if: !contains(github.event.issue.labels.*.name, 'no-ci-builds') name: Tox test steps: - uses: actions/checkout@v3 diff --git a/.packit.yaml b/.packit.yaml index 9ed65081d..b9a3edfb5 100644 --- a/.packit.yaml +++ b/.packit.yaml @@ -2,6 +2,11 @@ # https://packit.dev/docs/configuration/ --- +require: + label: + absent: + - no-ci-builds + actions: create-archive: - bash -c "tito build --tgz --test -o ."