Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update base to 2020-07-19 #47

Merged
merged 1 commit into from
Jul 19, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ const path = require('path');
const fs = require('fs');
const { hashElement } = require('folder-hash');

const inst_url = 'https://github.com/msys2/msys2-installer/releases/download/2020-06-29/msys2-base-x86_64-20200629.sfx.exe';
const checksum = '959E5672B3C26351345D9E5BAF7E5C2B34FE29AF4A0622E106FB079B9BADDF41';
const inst_url = 'https://github.com/msys2/msys2-installer/releases/download/2020-07-19/msys2-base-x86_64-20200719.sfx.exe';
const checksum = '7abf59641c8216baf9be192a2072c041fffafc41328bac68f13f0e87c0baa1d3';

function changeGroup(str) {
core.endGroup();
Expand Down Expand Up @@ -49,7 +49,7 @@ async function run() {

let inst_checksum = '';
await exec.exec(`powershell.exe`, [`(Get-FileHash ${inst_dest} -Algorithm SHA256)[0].Hash`], {listeners: {stdout: (data) => { inst_checksum += data.toString(); }}});
if (inst_checksum.slice(0, -2) !== checksum) {
if (inst_checksum.slice(0, -2).toUpperCase() !== checksum.toUpperCase()) {
core.setFailed(`The SHA256 of the installer does not match! expected ${checksum} got ${inst_checksum}`);
return;
}
Expand Down