Cache Nix derivations on GitHub Actions with Attic.
Find a file
dependabot[bot] ded4c0b888
chore(deps): bump undici in the npm_and_yarn group across 1 directory (#32)
Bumps the npm_and_yarn group with 1 update in the / directory: [undici](https://github.com/nodejs/undici).


Updates `undici` from 5.28.4 to 5.29.0
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v5.28.4...v5.29.0)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 5.29.0
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-08-15 10:03:15 +00:00
.github chore(deps): bump actions/checkout from 4 to 5 (#31) 2025-08-15 09:14:25 +00:00
src feat: include or exclude paths with regex (closes #30) 2025-08-15 17:13:14 +08: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: include or exclude paths with regex (closes #30) 2025-08-15 17:13:14 +08:00
flake.lock feat: include or exclude paths with regex (closes #30) 2025-08-15 17:13:14 +08:00
flake.nix feat: add inputs-from option (closes #28) 2025-03-22 13:10:12 +08:00
LICENSE feat: initial commit 2023-07-18 22:17:42 +08:00
package.json feat: include or exclude paths with regex (closes #30) 2025-08-15 17:13:14 +08:00
pnpm-lock.yaml chore(deps): bump undici in the npm_and_yarn group across 1 directory (#32) 2025-08-15 10:03:15 +00:00
README.md feat: add inputs-from option (closes #28) 2025-03-22 13:10:12 +08: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).

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