-
-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (33 loc) · 1 KB
/
bump-nix-version.yml
File metadata and controls
40 lines (33 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Bump Nix Version
on:
workflow_dispatch:
schedule:
# Run daily at 06:00 UTC
# FIXME, we still need a github app token here, if we also want to trigger ci from this type of PRs
- cron: "0 6 * * *"
permissions:
contents: write
pull-requests: write
jobs:
bump:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install Nix
uses: NixOS/nix-installer-action@main
- name: Setup Cachix
uses: cachix/cachix-action@v17
with:
name: nix-installer
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Bump Nix version
run: nix run --inputs-from .# nixpkgs#python3 -- scripts/bump_nix_version.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
commit-message: "Bump Nix version"
title: "Bump Nix version"
body: "Automated Nix version bump"
branch: bump-nix-version
delete-branch: true