Run on Node 20.x (#16)

Also move to @clechasseur/rs-actions-core for more up-to-date dependencies
This commit is contained in:
Charles Lechasseur
2024-04-23 16:26:03 -06:00
committed by GitHub
parent 4da312dd0f
commit fe0359b3e1
10 changed files with 4901 additions and 14405 deletions
+2 -3
View File
@@ -2,8 +2,7 @@
* Parse action input into a some proper thing.
*/
import { input } from '@rinse-repeat/actions-rs-core';
import { getInputList } from '@rinse-repeat/actions-rs-core/dist/input';
import { input } from '@clechasseur/rs-actions-core';
// Parsed action input
export interface Input {
@@ -14,6 +13,6 @@ export interface Input {
export function get(): Input {
return {
token: input.getInput('token', { required: true }),
ignore: getInputList('ignore', { required: false }),
ignore: input.getInputList('ignore', { required: false }),
};
}
+2 -2
View File
@@ -4,7 +4,7 @@ import * as os from 'os';
import * as core from '@actions/core';
import * as github from '@actions/github';
import { Cargo } from '@rinse-repeat/actions-rs-core';
import { Cargo } from '@clechasseur/rs-actions-core';
import * as input from './input';
import * as interfaces from './interfaces';
@@ -100,7 +100,7 @@ async function main(): Promise<void> {
const actionInput = input.get();
await run(actionInput);
} catch (error) {
core.setFailed(error.message);
core.setFailed((error as Error).message);
}
return;
+1 -1
View File
@@ -4,7 +4,7 @@ import * as core from '@actions/core';
import * as github from '@actions/github';
import * as nunjucks from 'nunjucks';
import { checks } from '@rinse-repeat/actions-rs-core';
import { checks } from '@clechasseur/rs-actions-core';
import * as interfaces from './interfaces';
import * as templates from './templates';