nixcfg/.github/workflows/flake-update-inputs.yml

28 lines
780 B
YAML
Raw Normal View History

name: "flake: update inputs"
2024-03-03 19:38:53 -05:00
on:
schedule:
- cron: "0 6 * * *"
workflow_dispatch:
jobs:
update-inputs:
2024-03-03 19:38:53 -05:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
2024-06-13 22:03:57 -04:00
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]"
2024-03-03 19:38:53 -05:00
- uses: cachix/install-nix-action@v20
- 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
2024-03-03 19:38:53 -05:00
with:
branch: ${{ github.head_ref }}