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 f0a9d1c
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: auto update nixpkgs

on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# permissions:
# contents: write

jobs:
build:
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 f0a9d1c

Please sign in to comment.