Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,15 @@ jobs:
signingKey: "${{ secrets.CACHIX_SIGNING_KEY }}"
- name: Build flake check
run: nix build --print-build-logs './nix/develop#${{ matrix.attr }}'

ci-gate:
name: ci-gate
needs: [nix-flake-check, nix-matrix, nix-build]
if: always()
runs-on: ubuntu-latest
steps:
- name: Fail unless every job succeeded
run: |
[ "${{ needs.nix-flake-check.result }}" = success ]
[ "${{ needs.nix-matrix.result }}" = success ]
[ "${{ needs.nix-build.result }}" = success ]
7 changes: 5 additions & 2 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,15 @@ jobs:
run: git push --set-upstream origin update --force
- name: Create pull request
run: |
body="Automated Nix flake and Cargo dependency updates."
gh pr create \
--base main \
--head update \
--title "Automated update" \
--body "Automated Nix flake and Cargo dependency updates." || \
--label auto-update \
--body "$body" || \
gh pr edit update \
--body "Automated Nix flake and Cargo dependency updates."
--add-label auto-update \
--body "$body"
env:
GH_TOKEN: '${{ secrets.PAT_FOR_AUTOMATED_UPDATE }}'
13 changes: 13 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# yaml-language-server: $schema=https://docs.mergify.com/mergify-configuration-schema.json
pull_request_rules:
- name: Merge automated update after every check
conditions:
- label = auto-update
- base = main
# fast-forward only lands on an up-to-date main.
- "#commits-behind = 0"
- check-success = ci-gate
- "#check-failure = 0"
actions:
merge:
method: fast-forward
Loading