mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 01:50:44 -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:
|
btrfs:
|
||||||
description: Use BTRFS to setup RAID0
|
description: Use BTRFS to setup RAID0
|
||||||
default: false
|
default: false
|
||||||
|
attic_token:
|
||||||
|
description: token to access attic cache
|
||||||
# debug:
|
# debug:
|
||||||
# description: Enable debug
|
# description: Enable debug
|
||||||
# default: false
|
# default: false
|
||||||
|
@ -57,7 +59,7 @@ runs:
|
||||||
- name: Install and login to attic cache
|
- name: Install and login to attic cache
|
||||||
run: |
|
run: |
|
||||||
nix profile install "nixpkgs#attic-client"
|
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
|
# - name: Nix restore pre
|
||||||
# shell: bash
|
# 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 }}
|
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
- uses: ./.github/actions/nix
|
- uses: ./.github/actions/nix
|
||||||
|
with:
|
||||||
|
attic_token: ${{ secrets.ATTIC_TOKEN }}
|
||||||
|
|
||||||
- name: write lock file
|
- name: write lock file
|
||||||
if: "${{ inputs.lockFile != '' }}"
|
if: "${{ inputs.lockFile != '' }}"
|
||||||
|
|
Loading…
Reference in a new issue