From 126d331dc69f4a1aa02452e374835e6a5d565613 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Tue, 29 Sep 2020 02:22:04 +0200 Subject: [PATCH] Move deprecation message to sources --- action.yml | 2 -- dist/index.js | 2 +- src/main.ts | 8 ++++---- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/action.yml b/action.yml index a9826e0e..351c489a 100644 --- a/action.yml +++ b/action.yml @@ -8,12 +8,10 @@ branding: inputs: buildx-version: - deprecationMessage: 'This action is ARCHIVED and will not receive any updates, update your workflows to use the official Docker action docker/setup-buildx-action@v1' description: 'Buildx version. Example: v0.3.0' default: 'latest' required: false qemu-version: - deprecationMessage: 'This action is ARCHIVED and will not receive any updates, update your workflows to use the official Docker action docker/setup-buildx-action@v1' description: 'QEMU static binaries Docker image version. Example: 4.2.0-7' default: 'latest' required: false diff --git a/dist/index.js b/dist/index.js index 26c19b5d..1ca82673 100644 --- a/dist/index.js +++ b/dist/index.js @@ -506,11 +506,11 @@ const exec = __importStar(__webpack_require__(514)); function run() { return __awaiter(this, void 0, void 0, function* () { try { + core.warning('This action is ARCHIVED and will not receive any updates, update your workflows to use the official Docker action docker/setup-buildx-action@v1'); if (os.platform() !== 'linux') { core.setFailed('Only supported on linux platform'); return; } - core.warning('This action is ARCHIVED and will not receive any updates, update your workflows to use the official Docker action docker/setup-buildx-action@v1'); const buildxVer = core.getInput('buildx-version') || 'latest'; const qemuVer = core.getInput('qemu-version') || 'latest'; const dockerConfigHome = process.env.DOCKER_CONFIG || path.join(os.homedir(), '.docker'); diff --git a/src/main.ts b/src/main.ts index 8ccc3fcf..1537ddef 100644 --- a/src/main.ts +++ b/src/main.ts @@ -8,15 +8,15 @@ import * as exec from '@actions/exec'; async function run(): Promise { try { + core.warning( + 'This action is ARCHIVED and will not receive any updates, update your workflows to use the official Docker action docker/setup-buildx-action@v1' + ); + if (os.platform() !== 'linux') { core.setFailed('Only supported on linux platform'); return; } - core.warning( - 'This action is ARCHIVED and will not receive any updates, update your workflows to use the official Docker action docker/setup-buildx-action@v1' - ); - const buildxVer: string = core.getInput('buildx-version') || 'latest'; const qemuVer: string = core.getInput('qemu-version') || 'latest'; const dockerConfigHome: string = process.env.DOCKER_CONFIG || path.join(os.homedir(), '.docker');