diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index aac6554..fc1e99f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -29,4 +29,4 @@ jobs: - name: Print Output id: output - run: echo "${{ steps.test-action.outputs.go-version }}" + run: echo "${{ steps.test-action.outputs.version }}" diff --git a/dist/index.js b/dist/index.js index 2c06952..1338b25 100644 Binary files a/dist/index.js and b/dist/index.js differ diff --git a/dist/index.js.map b/dist/index.js.map index 2367d36..b0efc8e 100644 Binary files a/dist/index.js.map and b/dist/index.js.map differ diff --git a/src/install.ts b/src/install.ts index fa54f95..0bca04b 100644 --- a/src/install.ts +++ b/src/install.ts @@ -5,9 +5,6 @@ import os from 'os' const DownloadBaseUrl = 'https://joylink.club/public-files/docker/' export function getFileName(version: string, arch = os.arch()): string { - if (!version) { - version = 'v0.13.1' - } return `buildx-${version}.linux-${arch}` } @@ -18,7 +15,7 @@ export function getFileName(version: string, arch = os.arch()): string { */ export async function download(fileName: string): Promise { const downloadUrl = `${DownloadBaseUrl}${fileName}` - core.info(`Downloading go from ${downloadUrl}`) + core.info(`Downloading docker buildx from ${downloadUrl}`) const downloadPath = await tc.downloadTool(downloadUrl) return downloadPath } diff --git a/src/main.ts b/src/main.ts index 4e7d8ab..84e6adc 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,7 +7,7 @@ import path from 'path' import cp from 'child_process' import { getFileName, download } from './install' -const BinDir = '/denv/docker/bin' +const BinDir = '/denv/docker-plugin' const BinName = 'buildx' /** @@ -18,8 +18,7 @@ export async function run(): Promise { try { // 获取输入的version const version: string = resolveVersionInput() - // Debug logs are only output if the `ACTIONS_STEP_DEBUG` secret is true - core.debug(`The input version is: ${version}`) + core.debug(`The version is: ${version}`) // 获取输入的architecture let arch = core.getInput('architecture') if (!arch) { @@ -71,6 +70,7 @@ function resolveVersionInput(): string { if (version) { return version + } else { + return 'v0.13.1' } - throw new Error(`没有指定版本`) }