From 50d353431e7b731e30885bfd60d21ff5ec5b7021 Mon Sep 17 00:00:00 2001 From: daijro Date: Mon, 9 Dec 2024 05:24:57 -0600 Subject: [PATCH] CI/CD: Pass secret to fetch command --- .github/workflows/build.yml | 6 ++++++ Makefile | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2632d2b..194ac81 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -84,6 +84,12 @@ jobs: sudo apt-get update sudo apt-get install -y msitools p7zip-full aria2 + - name: Fetch source + env: + CAMOUFOX_PASSWD: ${{ secrets.CAMOUFOX_PASSWD }} + run: | + make fetch + - name: Setup and bootstrap run: | make setup-minimal diff --git a/Makefile b/Makefile index f75b82c..fabdec2 100644 --- a/Makefile +++ b/Makefile @@ -57,7 +57,7 @@ fetch: exit 1; \ else \ aria2c -o rev-$(version)-$(release).7z "https://camoufox.com/pipeline/rev-$(version)-$(release).7z" && \ - 7z x -p"$$CAMOUFOX_PASSWD" rev-$(version)-$(release).7z -o./patches/closedsrc && \ + @7z x -p"$$CAMOUFOX_PASSWD" rev-$(version)-$(release).7z -o./patches/closedsrc && \ rm rev-$(version)-$(release).7z; \ fi; \ fi; \