mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-21 21:50:43 -06:00
add token to action
This commit is contained in:
parent
6a76620437
commit
daeb99d4e9
2 changed files with 5 additions and 1 deletions
4
.github/actions/nix/action.yml
vendored
4
.github/actions/nix/action.yml
vendored
|
@ -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
|
||||
|
|
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -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 != '' }}"
|
||||
|
|
Loading…
Reference in a new issue