Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Commit

Permalink
ci(github-action): add ENV NEXT_PUBLIC_BUILD_TIME when generating `…
Browse files Browse the repository at this point in the history
….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
  • Loading branch information
Clumsy-Coder committed Aug 21, 2023
1 parent 4cb30d8 commit 9758d88
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9758d88

Please sign in to comment.