Cache Nix derivations on GitHub Actions with Attic.
Find a file
dependabot[bot] 11721c12f1
chore(deps): bump the github-actions group across 1 directory with 4 updates (#57)
Bumps the github-actions group with 4 updates in the / directory: [actions/checkout](https://github.com/actions/checkout), [pnpm/action-setup](https://github.com/pnpm/action-setup), [actions/setup-node](https://github.com/actions/setup-node) and [cachix/install-nix-action](https://github.com/cachix/install-nix-action).


Updates `actions/checkout` from 6.0.2 to 6.0.3
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](de0fac2e45...df4cb1c069)

Updates `pnpm/action-setup` from 5.0.0 to 6.0.8
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](fc06bc1257...0e279bb959)

Updates `actions/setup-node` from 6.3.0 to 6.4.0
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](53b83947a5...48b55a011b)

Updates `cachix/install-nix-action` from 31.10.3 to 31.10.6
- [Release notes](https://github.com/cachix/install-nix-action/releases)
- [Changelog](https://github.com/cachix/install-nix-action/blob/master/RELEASE.md)
- [Commits](96951a368b...8aa03977d8)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
- dependency-name: pnpm/action-setup
  dependency-version: 6.0.8
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: github-actions
- dependency-name: actions/setup-node
  dependency-version: 6.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: github-actions
- dependency-name: cachix/install-nix-action
  dependency-version: 31.10.6
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: github-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-09 23:37:17 +01:00
.github chore(deps): bump the github-actions group across 1 directory with 4 updates (#57) 2026-06-09 23:37:17 +01:00
src feat: add custom push args (#55) 2026-06-06 12:28:41 +01:00
.gitignore add nixpkgs? 2023-07-19 10:37:21 +08:00
.node-version feat: include or exclude paths with regex (closes #30) 2025-08-15 17:13:14 +08:00
.prettierignore feat: auto push store paths and add CI (#1) 2023-07-19 09:53:49 +08:00
.prettierrc feat: add release workflow (#2) 2023-07-19 02:51:10 +00:00
action.yml feat: add custom push args (#55) 2026-06-06 12:28:41 +01:00
flake.lock fix: update Nix CLI syntax 2026-04-06 00:29:29 +08:00
flake.nix fix: update Nix CLI syntax 2026-04-06 00:29:29 +08:00
LICENSE feat: initial commit 2023-07-18 22:17:42 +08:00
package.json chore(deps): bump the npm-minor-patch group across 1 directory with 4 updates (#54) 2026-06-09 23:34:01 +01:00
pnpm-lock.yaml chore(deps): bump the npm-minor-patch group across 1 directory with 4 updates (#54) 2026-06-09 23:34:01 +01:00
README.md feat: add custom push args (#55) 2026-06-06 12:28:41 +01:00
tsconfig.json feat: use nix profile to install Attic 2024-10-06 22:05:47 +08:00

attic-action

Cache Nix derivations with Attic.

Usage

Configure your Attic instance with an endpoint, a cache, and a token that can read from and write to the cache. Then, add this step to a workflow job after Nix is installed:

- name: Setup Attic cache
  uses: ryanccn/attic-action@v0
  with:
    endpoint: ${{ secrets.ATTIC_ENDPOINT }}
    cache: ${{ secrets.ATTIC_CACHE }}
    token: ${{ secrets.ATTIC_TOKEN }}

Inputs

endpoint

The Attic endpoint. This is the URL without the cache name.

cache

The name of the Attic cache.

token

The authorization token to provide to Attic (optional).

inputs-from

Path to get the Nixpkgs flake input from instead of github:NixOS/nixpkgs/nixpkgs-unstable when installing Attic (optional).

push-args

Additional command-line arguments to pass to attic push (optional).

skip-push

Disable pushing new derivations to the cache automatically at the end of the job (default is false).

This requires you to invoke attic push <cache> with the paths you want to push to the cache manually.

Outputs

None

License

MIT