diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7653558..4ad6f6f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,9 +22,10 @@ jobs: uses: cachix/install-nix-action@v23 with: nix_path: nixpkgs=channel:nixos-unstable + github_access_token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} - name: Flake check - run: unset SSH_PRIVATE_KEY && unset AUTOUPDATE_TOKEN && sleep 900 && nix flake check + run: nix flake check deploy: runs-on: ubuntu-latest @@ -44,6 +45,7 @@ jobs: uses: cachix/install-nix-action@v23 with: nix_path: nixpkgs=channel:nixos-unstable + github_access_token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} - name: Load ssh key uses: webfactory/ssh-agent@v0.8.0 diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 2704236..a40b407 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -19,8 +19,9 @@ jobs: - name: Install Nix uses: cachix/install-nix-action@v23 with: + github_access_token: ${{ secrets.CUSTOM_GITHUB_TOKEN }} extra_nix_config: | - access-tokens = github.com=${{ secrets.AUTOUPDATE_TOKEN }} + access-tokens = gitnext.lewd.wtf=${{ secrets.AUTOUPDATE_TOKEN }} - name: Update flake.lock uses: DeterminateSystems/update-flake-lock@v20 env: