Skip to content

Commit

Permalink
add auto update for nixpkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alper-Celik committed Apr 7, 2024
1 parent 4642f01 commit 4d0c0e0
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: auto update nixpkgs

on:
schedule:
- cron: 15 2 * * *
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# permissions:
# contents: write

jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
token: ${{ secrets.PAT }}


- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main

- name: update nixpkgs
run: nix flake lock . --update-input nixpkgs

- name: push to main branch
run: |
git config --global user.name "Alper Çelik (GitHub Actions)"
git config --global user.email "[email protected]"
git add flake.lock
git commit -m "update nixpkgs"
git push origin main

0 comments on commit 4d0c0e0

Please sign in to comment.