From ba302f502f122475c63f421c450de7b78c1dab6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Sun, 12 Feb 2023 08:41:20 +0100 Subject: [PATCH] fix secrets setup for the update script --- .github/workflows/update.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/update.yml b/.github/workflows/update.yml index 9bc3234..3ff5332 100644 --- a/.github/workflows/update.yml +++ b/.github/workflows/update.yml @@ -22,13 +22,9 @@ jobs: - name: Download attic run: nix build github:DarkKirb/nix-packages#attic-client - name: Set up secrets - run: | - echo "$NIX_CACHE_KEY" > ~/cache.key - sudo mkdir /root/.aws - echo "$AWS_CREDENTIALS" | sudo tee /root/.aws/credentials > /dev/null + run: nix run github:DarkKirb/nix-packages#attic-client -- login attic-server https://attic-nocdn.chir.rs/ "$ATTIC_TOKEN" env: - NIX_CACHE_KEY: ${{secrets.NIX_CACHE_KEY}} - AWS_CREDENTIALS: ${{secrets.AWS_CREDENTIALS}} + ATTIC_TOKEN: ${{secrets.ATTIC_TOKEN}} - name: Update flake.lock run: nix flake update - name: Run update script