mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 05:53:28 +01:00
ci: fix PRs not merged automatically redux (#1212)
To match nixos-anywhere's setup :)
This commit is contained in:
2 files changed
+23
-21
No files matched your search
@@ -1,11 +1,6 @@
|
|||||||
name: Auto Merge Dependency Updates
|
name: Auto Merge Dependency Updates
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
- pull_request_target
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
- synchronize
|
|
||||||
- reopened
|
|
||||||
- labeled
|
|
||||||
jobs:
|
jobs:
|
||||||
auto-merge-dependency-updates:
|
auto-merge-dependency-updates:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -17,5 +12,3 @@ jobs:
|
|||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
steps:
|
steps:
|
||||||
- uses: Mic92/auto-merge@main
|
- uses: Mic92/auto-merge@main
|
||||||
with:
|
|
||||||
required-labels: merge-queue,dependencies
|
|
||||||
@@ -1,21 +1,30 @@
|
|||||||
name: update-flake-lock
|
name: "Update flakes"
|
||||||
on:
|
on:
|
||||||
workflow_dispatch: # allows manual triggering
|
workflow_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * 1,4' # Run twice a week
|
- cron: "0 0 * * 1,4"
|
||||||
permissions:
|
|
||||||
pull-requests: write
|
|
||||||
contents: write
|
|
||||||
jobs:
|
jobs:
|
||||||
lockfile:
|
createPullRequest:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- uses: actions/checkout@v6
|
||||||
uses: actions/checkout@v6
|
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: cachix/install-nix-action@v31
|
uses: cachix/install-nix-action@v31
|
||||||
- name: Update flake.lock
|
|
||||||
uses: DeterminateSystems/update-flake-lock@v28
|
|
||||||
with:
|
with:
|
||||||
pr-labels: |
|
extra_nix_config: |
|
||||||
merge-queue
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- uses: actions/create-github-app-token@v1
|
||||||
|
id: app-token
|
||||||
|
with:
|
||||||
|
app-id: ${{ vars.APP_ID }}
|
||||||
|
private-key: ${{ secrets.APP_PRIVATE_KEY }}
|
||||||
|
- name: Update flakes
|
||||||
|
run: nix flake update
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: peter-evans/create-pull-request@v7
|
||||||
|
with:
|
||||||
|
title: "flake: update inputs"
|
||||||
|
token: ${{ steps.app-token.outputs.token }}
|
||||||
|
labels: |
|
||||||
|
auto-merge
|
||||||
Reference in new issue
Block a user