Skip to content

Commit

Permalink
All v1 deprications, refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Oct 24, 2022
1 parent 73441a1 commit a49212a
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 10 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/action/check-r-packages@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 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/action/pr-fetch@v1 is deprecated. Please update your workflow to use the '@v2' version.");
console.log("::warning 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/action/pr-fetch@v1 is deprecated. Please update your workflow to use the '@v2' version.");
console.log("::warning 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/action/pr-push@v1 is deprecated. Please update your workflow to use the '@v2' version.");
console.log("::warning 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/action/pr-push@v1 is deprecated. Please update your workflow to use the '@v2' version.");
console.log("::warning 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/action/run-rchk@v1 is deprecated. Please update your workflow to use the '@v2' version."
echo "::warning 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/action/setup-pandoc@v1 is deprecated. Please update your workflow to use the '@v2' version.");
console.log("::warning 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/action/setup-pandoc@v1 is deprecated. Please update your workflow to use the '@v2' version.");
console.log("::warning 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
5 changes: 5 additions & 0 deletions setup-r-dependencies/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ inputs:
runs:
using: "composite"
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."
shell: bash

- name: Install pak and query dependencies
run: |
cat("::group::Install pak\n")
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/action/check-r-packages@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 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/action/check-r-packages@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 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
5 changes: 5 additions & 0 deletions setup-renv/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ inputs:
runs:
using: "composite"
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."
shell: bash

- name: Set RENV_PATHS_ROOT
shell: bash
run: |
Expand Down
1 change: 1 addition & 0 deletions setup-tinytex/lib/setup-tinytex.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +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.");
try {
yield getTinyTeX();
}
Expand Down
1 change: 1 addition & 0 deletions setup-tinytex/src/setup-tinytex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ if (!tempDirectory) {
}

async function run() {
console.log("::warning r-lib/actions/setup-tinytex@v1 is deprecated. Please update your workflow to use the '@v2' version.");
try {
await getTinyTeX();
} catch (error) {
Expand Down

0 comments on commit a49212a

Please sign in to comment.