From f11b58a7a099b701c3d929ea2cded036a0a5dafd Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 30 May 2025 18:21:16 +0200 Subject: [PATCH] workflows/check: run "checks" in one workflow This introduces "check" as another category of jobs suitable for the "Require status checks to pass" feature. Checks as a category would include everything that is done before even looking at the code: Right branch? Commit messages? Cherry-picked correctly? (commit messages are not checked, yet) --- .../{check-cherry-picks.yml => check.yml} | 36 +++++++++++++------ .github/workflows/no-channel.yml | 30 ---------------- 2 files changed, 26 insertions(+), 40 deletions(-) rename .github/workflows/{check-cherry-picks.yml => check.yml} (86%) delete mode 100644 .github/workflows/no-channel.yml diff --git a/.github/workflows/check-cherry-picks.yml b/.github/workflows/check.yml similarity index 86% rename from .github/workflows/check-cherry-picks.yml rename to .github/workflows/check.yml index 618c1cf9ffed1..b348bef5bfc0d 100644 --- a/.github/workflows/check-cherry-picks.yml +++ b/.github/workflows/check.yml @@ -1,29 +1,45 @@ -name: "Check cherry-picks" +name: Check on: pull_request: paths: - - .github/workflows/check-cherry-picks.yml + - .github/workflows/check.yml pull_request_target: - branches: - - 'release-**' - - 'staging-**' - - '!staging-next' concurrency: group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true -permissions: - pull-requests: write +permissions: {} defaults: run: shell: bash jobs: - check: - name: cherry-pick-check + no-channel-base: + name: no channel base + if: | + startsWith(github.base_ref, 'nixos-') || + startsWith(github.base_ref, 'nixpkgs-') + runs-on: ubuntu-24.04-arm + steps: + - run: | + cat <