Skip to content

Commit cb25e3e

Browse files
committed
create hash for each file
1 parent 0e002d0 commit cb25e3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/checkAddonUrlAndHash.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const glob = require('glob');
22
const crypto = require('crypto');
3-
const hash = crypto.createHash('sha256');
43

54
module.exports = ({core}, globPattern) => {
65
const fs = require('fs');
@@ -11,6 +10,7 @@ module.exports = ({core}, globPattern) => {
1110
const addonMetadata = JSON.parse(addonMetadataContents);
1211
const addonId = addonMetadata.addonId;
1312
const sha256 = addonMetadata.sha256;
13+
const hash = crypto.createHash('sha256');
1414
exec(`curl --fail --silent --show-error --location --output ${addonId}.nvda-addon "${addonMetadata.URL}"`, (err, stdout, stderr) => {
1515
if (stderr !== '' || err !== null) {
1616
console.log(`err: ${err}`);

0 commit comments

Comments
 (0)