From f600d8f471a604462249d91900d3fef448d6c203 Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Mon, 3 Aug 2026 10:18:17 +0200 Subject: [PATCH 1/2] Bump attic-action to v0.5.0 v0.4.1 uses the old 'nix profile install' syntax, which fails on newer Nix (self-hosted runners); the install error is swallowed and surfaces later as 'attic not found'. --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index f0180fc..8ad169a 100644 --- a/action.yml +++ b/action.yml @@ -84,7 +84,7 @@ runs: # post step at the end of the job, pushing the store paths the job built. - name: Setup Attic push if: steps.select.outputs.token != '' && inputs.attic-endpoint != '' - uses: ryanccn/attic-action@v0.4.1 + uses: ryanccn/attic-action@v0.5.0 with: endpoint: ${{ inputs.attic-endpoint }} cache: ${{ steps.select.outputs.cache }} From 5474a36a11223cbd95b7be2117439595c3d1e93b Mon Sep 17 00:00:00 2001 From: Siddarth Kumar Date: Tue, 4 Aug 2026 15:05:01 +0530 Subject: [PATCH 2/2] action.yml: add attic to PATH if its missing Else even after installing attic could not be found --- action.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/action.yml b/action.yml index 8ad169a..a3dd649 100644 --- a/action.yml +++ b/action.yml @@ -80,6 +80,18 @@ runs: echo "cache=$cache" >> "$GITHUB_OUTPUT" echo "token=$token" >> "$GITHUB_OUTPUT" + - name: Add Attic bin to PATH + if: steps.select.outputs.token != '' && inputs.attic-endpoint != '' + shell: bash + run: | + if command -v attic >/dev/null 2>&1; then + echo "attic already on PATH: $(command -v attic)" + exit 0 + fi + bin="$(nix --extra-experimental-features 'nix-command flakes' build --no-link --print-out-paths \ + 'github:NixOS/nixpkgs/nixpkgs-unstable#attic-client')/bin" + echo "$bin" >> "$GITHUB_PATH" + # Publishing only; reading is covered by the substituters above. Runs as a # post step at the end of the job, pushing the store paths the job built. - name: Setup Attic push