add token to action

This commit is contained in:
Daylin Morgan 2024-11-18 12:10:46 -06:00
parent 6a76620437
commit daeb99d4e9
Signed by: daylin
GPG key ID: 950D13E9719334AD
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

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