This commit is contained in:
Luca Casonato 2021-05-18 23:34:43 +02:00
parent 5720b67176
commit ebae5fab46
No known key found for this signature in database
GPG Key ID: 789878CF6382A84F
3 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ const { install } = require("./src/install.js");
/** /**
* @param {string} message * @param {string} message
* @returns {never} * @returns {never}
*/ */
function exit(message) { function exit(message) {
core.setFailed(message); core.setFailed(message);

View File

@ -3,7 +3,7 @@ const core = require("@actions/core");
const tc = require("@actions/tool-cache"); const tc = require("@actions/tool-cache");
/** /**
* @param {import("./version").Version} version * @param {import("./version").Version} version
*/ */
async function install(version) { async function install(version) {
const cachedPath = tc.find( const cachedPath = tc.find(

View File

@ -3,13 +3,13 @@ const fetch = require("node-fetch");
const GIT_HASH_RE = /^[0-9a-fA-F]{40}$/; const GIT_HASH_RE = /^[0-9a-fA-F]{40}$/;
/** /**
* @typedef VersionRange * @typedef VersionRange
* @property {string} range * @property {string} range
* @property {boolean} isCanary * @property {boolean} isCanary
*/ */
/** /**
* @typedef Version * @typedef Version
* @property {string} version * @property {string} version
* @property {boolean} isCanary * @property {boolean} isCanary
@ -17,7 +17,7 @@ const GIT_HASH_RE = /^[0-9a-fA-F]{40}$/;
/** /**
* Parses the version from the user into a structure. * Parses the version from the user into a structure.
* *
* @param {string | undefined} version * @param {string | undefined} version
* @returns {VersionRange | null} * @returns {VersionRange | null}
*/ */