Skip to content

Weekly Flake Update #55

Weekly Flake Update

Weekly Flake Update #55

name: Weekly Flake Update
on:
schedule:
- cron: '0 0 * * 4'
workflow_dispatch:
permissions:
contents: write
jobs:
update_and_check_flake:
runs-on: ubuntu-latest
env:
NIXPKGS_ALLOW_UNFREE: 1
steps:
- uses: actions/checkout@v4
- name: Set up Nix
uses: nixbuild/nix-quick-install-action@v28
- name: Run nix flake update
run: |
nix flake update
- name: Run nix flake check
run: |
nix flake check --impure --verbose
- name: Commit and Push flake.lock
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Update flake.lock"
file_pattern: "flake.lock"
- name: Mirror to Gitlab
uses: pixta-dev/repository-mirroring-action@v1
with:
target_repo_url:
git@gitlab.com:yomaq2/nix-config.git
ssh_private_key: # <-- use 'secrets' to pass credential information.
${{ secrets.GITLAB_SSH_PRIVATE_KEY }}