File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 pnpm install --frozen-lockfile
2828 pnpm build
2929
30+ - name : Verify docs update dates
31+ run : |
32+ expected_timestamp="$(git -C docs/tools log -1 --format=%ct -- vscode.md)"
33+ expected_commit="$(git -C docs/tools log -1 --format='%H %s' -- vscode.md)"
34+ actual_datetime="$(grep -o 'datetime="[^"]*"' build/docs/tools/vscode/index.html | head -n 1 | cut -d '"' -f 2)"
35+ actual_timestamp="$(node -e 'console.log(Math.floor(new Date(process.argv[1]).getTime() / 1000))' "$actual_datetime")"
36+
37+ echo "Git history shallow: $(git rev-parse --is-shallow-repository)"
38+ echo "Expected vscode.md last update: ${expected_timestamp} (${expected_commit})"
39+ echo "Built vscode.md last update: ${actual_timestamp} (${actual_datetime})"
40+
41+ test "$actual_timestamp" = "$expected_timestamp"
42+
3043 - name : Upload COS
3144 uses : zkqiang/tencent-cos-action@v0.1.0
3245 with :
You can’t perform that action at this time.
0 commit comments