Skip to content

Commit

Permalink
add monthly flake update.
Browse files Browse the repository at this point in the history
  • Loading branch information
katrinafyi committed Jan 19, 2024
1 parent a3db001 commit b231721
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/monthly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "monthly nixpkgs sync"
on:
schedule:
- cron: "53 15 18 * *" # AEST 1:53 am on 18th day each month
workflow_dispatch:

jobs:
flake-update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: cachix/install-nix-action@v20
- uses: cachix/cachix-action@v12
with: { name: pac-nix, authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' }

- run: |
git pull
git config user.name 'github-actions[bot]'
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- run: |
nix flake update --commit-lock-file
- run: |
nix build .#all -Lv
- run: git push

0 comments on commit b231721

Please sign in to comment.