shared-workflows/.github/workflows/update-flake-lock.yml

29 lines
727 B
YAML

name: Update flake.lock
on:
workflow_call:
secrets:
github-token:
required: true
jobs:
update-flake-lock:
name: Update flake.lock
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4
with:
token: ${{ secrets.github-token }}
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@07ebb8d2749aa2fac2baae7d1cfa011e4acfd8d1 # v5
- name: Update flake.lock and push
shell: bash
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "noreply@github.com"
nix flake update --commit-lock-file
git push