Nix Packages auto-update ❄️ #248
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'Nix Packages auto-update ❄️' | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 0 * * *' # https://crontab.guru/#0_0_*_*_* | |
| jobs: | |
| update-packages: | |
| runs-on: ['self-hosted'] | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Nix | |
| uses: metacraft-labs/nixos-modules/.github/install-nix@main | |
| with: | |
| nix-github-token: ${{ secrets.NIX_GITHUB_TOKEN }} | |
| cachix-auth-token: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| cachix-cache: ${{ vars.CACHIX_CACHE }} | |
| trusted-public-keys: ${{ vars.TRUSTED_PUBLIC_KEYS }} | |
| substituters: ${{ vars.SUBSTITUTERS }} | |
| - uses: tibdex/[email protected] | |
| id: generate-token | |
| with: | |
| app_id: ${{ secrets.NIX_FLAKE_UPDATE_PR_BOT_APP_ID }} | |
| private_key: ${{ secrets.NIX_FLAKE_UPDATE_PR_BOT_APP_PRIVATE_KEY }} | |
| - name: Update flake packages | |
| uses: metacraft-labs/nix-update-action@main | |
| with: | |
| from_branch: circ,eos-vm,jolt,nexus,rapidsnark,risc0,sp1,zkm,zkwasm | |
| blacklist: cardano,corepack-shims,cosmos-theta-testnet,emscripten,ffiasm,go-opera,graphql,jolt-guest-rust,polkadot-fast,rapidsnark-server,risc0-rust,sp1-rust,zkm-rust,zqfield-bn254 | |
| token: ${{ steps.generate-token.outputs.token }} |