From 9758d8833d566a298ca09345d060da9974f41f7e Mon Sep 17 00:00:00 2001 From: Clumsy-Coder <19594044+Clumsy-Coder@users.noreply.github.com> Date: Mon, 21 Aug 2023 13:07:41 -0600 Subject: [PATCH] ci(github-action): add ENV `NEXT_PUBLIC_BUILD_TIME` when generating `.env.local` ## what - add ENV `NEXT_PUBLIC_BUILD_TIME` to .env.local - contains the current time in UNIX time ## how - use command `date +%s` to get UNIX time ## why - this is needed to display build time in the `about` page ## where - ./.github/workflows/build.yaml ## usage --- .github/workflows/build.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b6ded5d3..e723dec7 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -145,6 +145,7 @@ jobs: printf "NEXT_PUBLIC_NUM_ENTRIES_TOP_CLIENTS_BLOCKED_QUERIES=%s\n" "${{ secrets.NEXT_PUBLIC_NUM_ENTRIES_TOP_CLIENTS_BLOCKED_QUERIES }}" >> .env.local printf "NEXT_PUBLIC_POLLING_QUERIES_OVERTIME=%s\n" "${{ secrets.NEXT_PUBLIC_POLLING_QUERIES_OVERTIME }}" >> .env.local printf "NEXT_PUBLIC_POLLING_CLIENTS_OVERTIME=%s\n" "${{ secrets.NEXT_PUBLIC_POLLING_CLIENTS_OVERTIME }}" >> .env.local + printf "NEXT_PUBLIC_BUILD_TIME=%s\n" "$(date +%s)" >> .env.local - name: Set up QEMU uses: docker/setup-qemu-action@v2