Skip to content

Push cache

Push cache #1158

Workflow file for this run

name: "Push cache" # or, sorry garnix :)
on:
schedule:
- cron: "59 3,11,19 * * *" # 20m after build
check_suite:
types: [completed]
workflow_dispatch:
jobs:
push_cache:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
nix_path: nixpkgs=channel:nixos-unstable
extra_nix_config: |
trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://cache.garnix.io https://cache.nixos.org/
- uses: cachix/cachix-action@v15
with:
name: aur3l14no
- name: Push cache
run: |
nix develop -c just cache
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}