Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,16 @@ runs:
fallback = true
${{ inputs.extra-nix-config }}

# attic-action resolves `attic` via PATH, which only works when a Nix
# installer action ran in the same job. With preinstalled Nix (self-hosted
# runners) provide the client at its store path.
- name: Provide attic client
if: inputs.install-nix != 'true'
shell: bash
run: |
command -v attic >/dev/null && exit 0
echo "$(nix build --no-link --print-out-paths 'github:NixOS/nixpkgs/nixpkgs-unstable#attic-client')/bin" >> "$GITHUB_PATH"

- name: Select Attic cache and token
id: select
shell: bash
Expand Down
Loading