Skip to content

Commit e2c2688

Browse files
committed
simplify timestamp
1 parent ff81795 commit e2c2688

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/build-deploy.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ jobs:
1717
uses: actions/checkout@v4
1818

1919
- name: Set timestamp for build/deploy
20-
run: |
21-
TIMESTAMP=$(date +%Y%m%d%H%M%S)
22-
echo "TIMESTAMP=${TIMESTAMP}" >> $GITHUB_ENV
20+
run: echo "TIMESTAMP=$(date +%Y%m%d%H%M%S)" >> $GITHUB_ENV
2321

2422
- name: Set up pnpm
2523
uses: pnpm/action-setup@v4

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ REMOTE_CMD=ssh $(VPS_USER)@$(VPS_HOST)
99

1010
# Variables for build/deploy
1111
# ==========================
12-
export TIMESTAMP := $(shell date +%Y%m%d%H%M%S)
13-
export GIT_VERSION := $(shell git rev-parse --short HEAD)
12+
export TIMESTAMP ?= $(shell date +%Y%m%d%H%M%S)
13+
export GIT_VERSION ?= $(shell git rev-parse --short HEAD)
1414

1515
# Variables for deploy
1616
# ====================

0 commit comments

Comments
 (0)