mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 07:13:55 -05:00
28 lines
780 B
YAML
28 lines
780 B
YAML
name: "flake: update inputs"
|
|
on:
|
|
schedule:
|
|
- cron: "0 6 * * *"
|
|
workflow_dispatch:
|
|
jobs:
|
|
update-inputs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.head_ref }}
|
|
fetch-depth: 1
|
|
- name: "git: setup"
|
|
run: |
|
|
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
|
git config --local user.name "github-actions[bot]"
|
|
- uses: cachix/install-nix-action@v27
|
|
- name: "flake: update inputs"
|
|
run: nix flake update --commit-lock-file
|
|
- name: "flake: check eval"
|
|
run: nix flake check
|
|
- name: "git: push changes"
|
|
uses: ad-m/github-push-action@master
|
|
with:
|
|
branch: ${{ github.head_ref }}
|
|
|