Modular, context-aware and aspect-oriented dendritic Nix configurations. Discussions: https://oeiuwq.zulipchat.com/join/nqp26cd4kngon6mo3ncgnuap/ den.oeiuwq.com
configurations den dendritic nix aspect oriented

skip CI on drafts (#61)

authored by oeiuwq.com and committed by

GitHub df080555 721c34b1

+13 -1
+13 -1
.github/workflows/test.yml
··· 1 1 on: 2 - pull_request: 3 2 push: 4 3 branches: [main] 4 + pull_request: 5 + types: [labeled, opened, synchronize, reopened, review_requested, ready_for_review] 5 6 concurrency: 6 7 group: ${{ github.workflow }}-${{ github.ref }} 7 8 cancel-in-progress: true 8 9 jobs: 10 + flag: 11 + runs-on: ubuntu-latest 12 + outputs: 13 + flag: ${{steps.flag.outputs.flag}} 14 + steps: 15 + - id: flag 16 + run: echo "flag=${{github.ref == 'refs/heads/main' || github.event.pull_request.draft == false}}" >> $GITHUB_OUTPUT 9 17 flake-check: 18 + needs: [flag] 19 + if: needs.flag.outputs.flag == 'true' 10 20 name: nix flake check 11 21 runs-on: ubuntu-latest 12 22 steps: 13 23 - uses: cachix/install-nix-action@v30 14 24 - run: nix flake check -L github:vic/checkmate --override-input target github:$GITHUB_REPOSITORY/$GITHUB_SHA 15 25 template: 26 + needs: [flag] 27 + if: needs.flag.outputs.flag == 'true' 16 28 strategy: 17 29 matrix: 18 30 os: [ubuntu-latest, macos-latest]