fmt
This commit is contained in:
parent
5720b67176
commit
ebae5fab46
2
main.js
2
main.js
|
@ -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);
|
||||||
|
|
|
@ -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(
|
||||||
|
|
|
@ -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}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue