diff --git a/dist/index.js b/dist/index.js index 5f04b4d..ae3e315 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1693,7 +1693,7 @@ const path = __importStar(__webpack_require__(622)); const node_fetch_1 = __importDefault(__webpack_require__(454)); const os = __importStar(__webpack_require__(87)); const PLATFORM = os.platform() || 'linux'; -const ARCH = os.arch() || 'amd64'; +const ARCH = (os.arch() === 'x86' ? 'amd64' : os.arch()) || 'amd64'; const githubToken = core.getInput('github-token'); core.info(githubToken); const ARGOCD_SERVER_URL = core.getInput('argocd-server-url'); @@ -8688,7 +8688,7 @@ function bytesToUuid(buf, offset) { var i = offset || 0; var bth = byteToHex; // join used to fix memory issue caused by concatenation: https://bugs.chromium.org/p/v8/issues/detail?id=3175#c4 - return ([bth[buf[i++]], bth[buf[i++]], + return ([bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', bth[buf[i++]], bth[buf[i++]], '-', diff --git a/src/main.ts b/src/main.ts index 61f5ec9..3f07a14 100644 --- a/src/main.ts +++ b/src/main.ts @@ -31,7 +31,7 @@ interface App { }; } const PLATFORM = os.platform() || 'linux'; -const ARCH = os.arch() || 'amd64'; +const ARCH = (os.arch() === 'x86' ? 'amd64' : os.arch()) || 'amd64'; const githubToken = core.getInput('github-token'); const ARGOCD_SERVER_URL = core.getInput('argocd-server-url'); const ARGOCD_TOKEN = core.getInput('argocd-token');