We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e1d244 commit 966c0f7Copy full SHA for 966c0f7
.github/workflows/pages.yml
@@ -45,7 +45,9 @@ jobs:
45
with:
46
node-version: "20"
47
cache: ${{ steps.detect-package-manager.outputs.manager }}
48
- - run: npm ci
+ - run: |
49
+ npm ci
50
+ git log -1 --format=%h > hash.txt
51
- run: npm run build --if-present
52
53
gulpfile.js
@@ -179,6 +179,10 @@ gulp.task("calHash", function (cb) {
179
sha256 = crypto.createHash("sha256");
180
HASHVALUE = sha256.update(b64).digest("hex").substring(0,8);
181
182
+
183
+ let commit = fs.readFileSync('hash.txt').toString()
184
+ HASHVALUE = commit.trim() + "-" + HASHVALUE;
185
186
cb();
187
});
188
0 commit comments