diff --git a/.github/workflows/update-flake-lock.yml b/.github/workflows/update-flake-lock.yml index 83926cb1..b7a83db5 100644 --- a/.github/workflows/update-flake-lock.yml +++ b/.github/workflows/update-flake-lock.yml @@ -31,10 +31,11 @@ jobs: run: | mkdir -p $HOME/.config/nix { - echo "${{ inputs.nix-github-token != '' && format('access-tokens = github.com={0}', inputs.nix-github-token) || '' }} + echo "${{ secrets.nix-github-token != '' && format('access-tokens = github.com={0}', secrets.nix-github-token) || '' }} accept-flake-config = true" } > $HOME/.config/nix/nix.conf + - name: Run `nix flake update` id: update-lockfile run: | diff --git a/.github/workflows/update-flake-packages.yml b/.github/workflows/update-flake-packages.yml index a8e6f48d..1da4df63 100644 --- a/.github/workflows/update-flake-packages.yml +++ b/.github/workflows/update-flake-packages.yml @@ -31,7 +31,7 @@ jobs: run: | mkdir -p $HOME/.config/nix { - echo "${{ inputs.nix-github-token != '' && format('access-tokens = github.com={0}', inputs.nix-github-token) || '' }} + echo "${{ secrets.nix-github-token != '' && format('access-tokens = github.com={0}', secrets.nix-github-token) || '' }} accept-flake-config = true allow-import-from-derivation = true" } > $HOME/.config/nix/nix.conf