Fix access token conflicts
ci / test (push) Successful in 4m55s Details
ci / deploy (push) Successful in 1m58s Details

This commit is contained in:
Hayajiro 2023-11-19 20:42:43 +01:00
parent da293b531f
commit 1fd83754b3
2 changed files with 5 additions and 2 deletions

View File

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

View File

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