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 != '' }}"