Public Access
Run on Node 20.x (#16)
Also move to @clechasseur/rs-actions-core for more up-to-date dependencies
This commit is contained in:
+2
-3
@@ -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
@@ -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
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user