Skip to content

Commit 966c0f7

Browse files
author
liw003
committed
bx
1 parent 2e1d244 commit 966c0f7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/pages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ jobs:
4545
with:
4646
node-version: "20"
4747
cache: ${{ steps.detect-package-manager.outputs.manager }}
48-
- run: npm ci
48+
- run: |
49+
npm ci
50+
git log -1 --format=%h > hash.txt
4951
- run: npm run build --if-present
5052

5153

gulpfile.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,10 @@ gulp.task("calHash", function (cb) {
179179
sha256 = crypto.createHash("sha256");
180180
HASHVALUE = sha256.update(b64).digest("hex").substring(0,8);
181181

182+
183+
let commit = fs.readFileSync('hash.txt').toString()
184+
HASHVALUE = commit.trim() + "-" + HASHVALUE;
185+
182186
cb();
183187
});
184188

0 commit comments

Comments
 (0)