Merge pull request #6 from hexianga/patch-1

ossutil version upgrade
This commit is contained in:
EnokMan 2021-09-14 23:15:02 +08:00 committed by GitHub
commit 131734f686
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ const toolCache = require("@actions/tool-cache");
const path = require("path"); const path = require("path");
const fs = require("fs"); const fs = require("fs");
const url = "http://gosspublic.alicdn.com/ossutil/1.6.7/ossutil64"; const url = "http://gosspublic.alicdn.com/ossutil/1.7.7/ossutil64";
async function main() { async function main() {
const ENDPOINT = core.getInput("endpoint"); const ENDPOINT = core.getInput("endpoint");
@ -12,7 +12,7 @@ async function main() {
const ACCESS_KEY_SECRET = core.getInput("access-key-secret"); const ACCESS_KEY_SECRET = core.getInput("access-key-secret");
const STS_TOKEN = core.getInput("sts-token"); const STS_TOKEN = core.getInput("sts-token");
let toolPath = toolCache.find("ossutil", "1.6.7"); let toolPath = toolCache.find("ossutil", "1.7.7");
if (!toolPath) { if (!toolPath) {
core.info(`downloading from ${url}`); core.info(`downloading from ${url}`);