Skip to content

Commit

Permalink
REfine v1 deprecation messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Oct 24, 2022
1 parent a49212a commit f5b3dfb
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion check-r-package/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pr-fetch/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion pr-fetch/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });

Expand Down
2 changes: 1 addition & 1 deletion pr-push/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion pr-push/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down
2 changes: 1 addition & 1 deletion run-rchk/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup-pandoc/lib/setup-pandoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down
2 changes: 1 addition & 1 deletion setup-pandoc/src/setup-pandoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down
2 changes: 1 addition & 1 deletion setup-r-dependencies/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup-r/lib/setup-r.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion setup-r/src/setup-r.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);

Expand Down
2 changes: 1 addition & 1 deletion setup-renv/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup-tinytex/lib/setup-tinytex.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit f5b3dfb

Please sign in to comment.