From f5b3dfbf1942ce68283de21bf65cce051e3a2c4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Cs=C3=A1rdi?= Date: Mon, 24 Oct 2022 14:29:25 +0200 Subject: [PATCH] REfine v1 deprecation messages --- check-r-package/action.yaml | 2 +- pr-fetch/lib/main.js | 2 +- pr-fetch/src/main.ts | 2 +- pr-push/lib/main.js | 2 +- pr-push/src/main.ts | 2 +- run-rchk/entrypoint.sh | 2 +- setup-pandoc/lib/setup-pandoc.js | 2 +- setup-pandoc/src/setup-pandoc.ts | 2 +- setup-r-dependencies/action.yaml | 2 +- setup-r/lib/setup-r.js | 2 +- setup-r/src/setup-r.ts | 2 +- setup-renv/action.yaml | 2 +- setup-tinytex/lib/setup-tinytex.js | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/check-r-package/action.yaml b/check-r-package/action.yaml index 95621a4c7..48e1a49ad 100644 --- a/check-r-package/action.yaml +++ b/check-r-package/action.yaml @@ -19,7 +19,7 @@ runs: steps: - name: "@v1 is deprecated" run: | - echo "::warning r-lib/actions/check-r-package@v1 is deprecated. Please update your workflow to use the '@v2' version. Also look at the examples at https://github.com/r-lib/actions/tree/v2/examples because '@v2' workflows are much simpler than '@v1' workflows." + echo "::warning title=r-lib/actions/check-r-package@v1 is deprecated.::r-lib/actions/check-r-package@v1 is deprecated. Please update your workflow to use the 'v2' version. Also look at the examples at https://github.com/r-lib/actions/tree/v2/examples because 'v2' workflows are much simpler than 'v1' workflows." shell: bash - name: Check diff --git a/pr-fetch/lib/main.js b/pr-fetch/lib/main.js index 85841bbc5..b5cdcbae8 100644 --- a/pr-fetch/lib/main.js +++ b/pr-fetch/lib/main.js @@ -22,7 +22,7 @@ const exec = __importStar(require("@actions/exec")); function run() { return __awaiter(this, void 0, void 0, function* () { try { - console.log("::warning r-lib/actions/pr-fetch@v1 is deprecated. Please update your workflow to use the '@v2' version."); + console.log("::warning title=r-lib/actions/pr-fetch@v1 is deprecated.::r-lib/actions/pr-fetch@v1 is deprecated. Please update your workflow to use the 'v2' version."); const token = core.getInput("repo-token", { required: true }); const client = new github.GitHub(token); const context = github.context; diff --git a/pr-fetch/src/main.ts b/pr-fetch/src/main.ts index 941617df2..8dbce82b6 100644 --- a/pr-fetch/src/main.ts +++ b/pr-fetch/src/main.ts @@ -5,7 +5,7 @@ import * as exec from "@actions/exec"; async function run() { try { - console.log("::warning r-lib/actions/pr-fetch@v1 is deprecated. Please update your workflow to use the '@v2' version."); + console.log("::warning title=r-lib/actions/pr-fetch@v1 is deprecated.::r-lib/actions/pr-fetch@v1 is deprecated. Please update your workflow to use the 'v2' version."); const token: string = core.getInput("repo-token", { required: true }); diff --git a/pr-push/lib/main.js b/pr-push/lib/main.js index 496a03d34..e6317532d 100644 --- a/pr-push/lib/main.js +++ b/pr-push/lib/main.js @@ -22,7 +22,7 @@ const exec = __importStar(require("@actions/exec")); function run() { return __awaiter(this, void 0, void 0, function* () { try { - console.log("::warning r-lib/actions/pr-push@v1 is deprecated. Please update your workflow to use the '@v2' version."); + console.log("::warning title=r-lib/actions/pr-push@v1 is deprecated.::r-lib/actions/pr-push@v1 is deprecated. Please update your workflow to use the '@v2' version."); const token = core.getInput("repo-token", { required: true }); const cli_args = core.getInput("args"); const client = new github.GitHub(token); diff --git a/pr-push/src/main.ts b/pr-push/src/main.ts index 272ff087a..de70579bc 100644 --- a/pr-push/src/main.ts +++ b/pr-push/src/main.ts @@ -4,7 +4,7 @@ import * as exec from "@actions/exec"; async function run() { try { - console.log("::warning r-lib/actions/pr-push@v1 is deprecated. Please update your workflow to use the '@v2' version."); + console.log("::warning title=r-lib/actions/pr-push@v1 is deprecated.::r-lib/actions/pr-push@v1 is deprecated. Please update your workflow to use the '@v2' version."); const token: string = core.getInput("repo-token", { required: true }); const cli_args: string = core.getInput("args"); diff --git a/run-rchk/entrypoint.sh b/run-rchk/entrypoint.sh index 99be1f0bb..17c1eeb35 100755 --- a/run-rchk/entrypoint.sh +++ b/run-rchk/entrypoint.sh @@ -2,7 +2,7 @@ set -eo pipefail -echo "::warning r-lib/actions/run-rchk@v1 is deprecated. Please update your workflow to use the '@v2' version." +echo "::warning title=r-lib/actions/run-rchk@v1 is deprecated.::r-lib/actions/run-rchk@v1 is deprecated. Please update your workflow to use the 'v2' version." cd /home/docker/R-svn/ . /home/docker/rchk/scripts/cmpconfig.inc diff --git a/setup-pandoc/lib/setup-pandoc.js b/setup-pandoc/lib/setup-pandoc.js index 555d74f77..4f765173d 100644 --- a/setup-pandoc/lib/setup-pandoc.js +++ b/setup-pandoc/lib/setup-pandoc.js @@ -44,7 +44,7 @@ if (!tempDirectory) { } function run() { return __awaiter(this, void 0, void 0, function* () { - console.log("::warning r-lib/actions/setup-pandoc@v1 is deprecated. Please update your workflow to use the '@v2' version."); + console.log("::warning title=r-lib/actions/setup-pandoc@v1 is deprecated.::r-lib/actions/setup-pandoc@v1 is deprecated. Please update your workflow to use the 'v2' version."); try { let pandocVersion = core.getInput("pandoc-version"); core.debug(`got pandoc-version ${pandocVersion}`); diff --git a/setup-pandoc/src/setup-pandoc.ts b/setup-pandoc/src/setup-pandoc.ts index 39083f396..30e7bf54b 100644 --- a/setup-pandoc/src/setup-pandoc.ts +++ b/setup-pandoc/src/setup-pandoc.ts @@ -28,7 +28,7 @@ if (!tempDirectory) { } async function run() { - console.log("::warning r-lib/actions/setup-pandoc@v1 is deprecated. Please update your workflow to use the '@v2' version."); + console.log("::warning title=r-lib/actions/setup-pandoc@v1 is deprecated.::r-lib/actions/setup-pandoc@v1 is deprecated. Please update your workflow to use the 'v2' version."); try { let pandocVersion = core.getInput("pandoc-version"); core.debug(`got pandoc-version ${pandocVersion}`); diff --git a/setup-r-dependencies/action.yaml b/setup-r-dependencies/action.yaml index e8cb18638..7451517da 100644 --- a/setup-r-dependencies/action.yaml +++ b/setup-r-dependencies/action.yaml @@ -18,7 +18,7 @@ runs: steps: - name: "@v1 is deprecated" run: | - echo "::warning r-lib/actions/setup-r-dependencies@v1 is deprecated. Please update your workflow to use the '@v2' version. Also look at the examples at https://github.com/r-lib/actions/tree/v2/examples because '@v2' workflows are much simpler than '@v1' workflows." + echo "::warning title=r-lib/actions/setup-r-dependencies@v1 is deprecated.::r-lib/actions/setup-r-dependencies@v1 is deprecated. Please update your workflow to use the 'v2' version. Also look at the examples at https://github.com/r-lib/actions/tree/v2/examples because 'v2' workflows are much simpler than 'v1' workflows." shell: bash - name: Install pak and query dependencies diff --git a/setup-r/lib/setup-r.js b/setup-r/lib/setup-r.js index 5bc52e884..6192ed62c 100644 --- a/setup-r/lib/setup-r.js +++ b/setup-r/lib/setup-r.js @@ -35,7 +35,7 @@ function run() { return __awaiter(this, void 0, void 0, function* () { try { core.debug(`started action`); - console.log("::warning r-lib/actions/setup-r@v1 is deprecated. Please update your workflow to use the '@v2' version. Also look at the examples at https://github.com/r-lib/actions/tree/v2/examples because '@v2' workflows are much simpler than '@v1' workflows."); + console.log("::warning title=r-lib/actions/setup-r@v1 is deprecated.::r-lib/actions/setup-r@v1 is deprecated. Please update your workflow to use the 'v2' version. Also look at the examples at https://github.com/r-lib/actions/tree/v2/examples because '@v2' workflows are much simpler than 'v1' workflows."); let version = core.getInput("r-version"); core.debug(`got version ${version}`); yield installer_1.getR(version); diff --git a/setup-r/src/setup-r.ts b/setup-r/src/setup-r.ts index 1a336a725..11b7dcd88 100644 --- a/setup-r/src/setup-r.ts +++ b/setup-r/src/setup-r.ts @@ -5,7 +5,7 @@ import * as path from "path"; async function run() { try { core.debug(`started action`); - console.log("::warning r-lib/actions/setup-r@v1 is deprecated. Please update your workflow to use the '@v2' version. Also look at the examples at https://github.com/r-lib/actions/tree/v2/examples because '@v2' workflows are much simpler than '@v1' workflows."); + console.log("::warning title=r-lib/actions/setup-r@v1 is deprecated.::r-lib/actions/setup-r@v1 is deprecated. Please update your workflow to use the 'v2' version. Also look at the examples at https://github.com/r-lib/actions/tree/v2/examples because '@v2' workflows are much simpler than 'v1' workflows."); let version = core.getInput("r-version"); core.debug(`got version ${version}`); diff --git a/setup-renv/action.yaml b/setup-renv/action.yaml index 9010fdec1..6e1e73c77 100644 --- a/setup-renv/action.yaml +++ b/setup-renv/action.yaml @@ -11,7 +11,7 @@ runs: steps: - name: "@v1 is deprecated" run: | - echo "::warning r-lib/actions/setup-renv@v1 is deprecated. Please update your workflow to use the '@v2' version. Also look at the examples at https://github.com/r-lib/actions/tree/v2/examples because '@v2' workflows are much simpler than '@v1' workflows." + echo "::warning title=r-lib/actions/setup-renv@v1 is deprecated.::r-lib/actions/setup-renv@v1 is deprecated. Please update your workflow to use the 'v2' version. Also look at the examples at https://github.com/r-lib/actions/tree/v2/examples because 'v2' workflows are much simpler than 'v1' workflows." shell: bash - name: Set RENV_PATHS_ROOT diff --git a/setup-tinytex/lib/setup-tinytex.js b/setup-tinytex/lib/setup-tinytex.js index f389f1ae5..b6c18f4a5 100644 --- a/setup-tinytex/lib/setup-tinytex.js +++ b/setup-tinytex/lib/setup-tinytex.js @@ -44,7 +44,7 @@ if (!tempDirectory) { } function run() { return __awaiter(this, void 0, void 0, function* () { - console.log("::warning r-lib/actions/setup-tinytex@v1 is deprecated. Please update your workflow to use the '@v2' version."); + console.log("::warning title=r-lib/actions/setup-tinytex@v1 is deprecated.::r-lib/actions/setup-tinytex@v1 is deprecated. Please update your workflow to use the 'v2' version."); try { yield getTinyTeX(); }