mirror of
https://github.com/librekeys/picoforge.git
synced 2026-07-28 08:01:19 -07:00
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
name: "Update Nix Package"
|
|
on:
|
|
schedule:
|
|
- cron: '0 0 * * 0' # https://crontab.guru/#0_0_*_*_0
|
|
workflow_dispatch:
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
jobs:
|
|
update:
|
|
strategy:
|
|
matrix:
|
|
nixPath:
|
|
- nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixos-unstable.tar.gz
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v6
|
|
- name: Install nix
|
|
uses: cachix/install-nix-action@v31
|
|
with:
|
|
nix_path: "${{ matrix.nixPath }}"
|
|
extra_nix_config: |
|
|
experimental-features = nix-command flakes
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
- name: Show nixpkgs version
|
|
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
|
|
- name: Update flake packages
|
|
uses: gepbird/nix-update-action@v2.1.1
|
|
with:
|
|
token: ${{ secrets.NIX_UPDATE_TOKEN }}
|
|
blacklist: "default"
|
|
branch: "build/update-nix-package"
|
|
pr-title: "build(package.nix): update"
|
|
pr-body: "Automated changes by the [nix-update-actions](https://github.com/gepbird/nix-update-action) GitHub Action."
|
|
pr-labels: "Packaging"
|