From daeb99d4e92bf407fd8aa5ac396ea57e7dc76d8a Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Mon, 18 Nov 2024 12:10:46 -0600 Subject: [PATCH] add token to action --- .github/actions/nix/action.yml | 4 +++- .github/workflows/build.yml | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/actions/nix/action.yml b/.github/actions/nix/action.yml index 6d4920c..3a4a0db 100644 --- a/.github/actions/nix/action.yml +++ b/.github/actions/nix/action.yml @@ -27,6 +27,8 @@ inputs: btrfs: description: Use BTRFS to setup RAID0 default: false + attic_token: + description: token to access attic cache # debug: # description: Enable debug # default: false @@ -57,7 +59,7 @@ runs: - name: Install and login to attic cache run: | nix profile install "nixpkgs#attic-client" - attic login oizys https://attic.dayl.in "${{ secrets.ATTIC_TOKEN }}" + attic login oizys https://attic.dayl.in "${{ inputs.attic_token}}" # - name: Nix restore pre # shell: bash diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 39bacdc..2ef285d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,6 +41,8 @@ jobs: private-key: ${{ secrets.SSH_PRIVATE_KEY }} - uses: ./.github/actions/nix + with: + attic_token: ${{ secrets.ATTIC_TOKEN }} - name: write lock file if: "${{ inputs.lockFile != '' }}"