From 4ad1d585c9c700617812b12d137ee95711c3d5da Mon Sep 17 00:00:00 2001 From: Mike Penz Date: Mon, 19 Oct 2020 18:55:59 +0200 Subject: [PATCH] - formatting adjustment --- src/tags.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tags.ts b/src/tags.ts index 6a79b2e..9f3f888 100755 --- a/src/tags.ts +++ b/src/tags.ts @@ -1,6 +1,6 @@ import {Octokit, RestEndpointMethodTypes} from '@octokit/rest' import * as core from '@actions/core' -import { SemVer } from 'semver' +import {SemVer} from 'semver' export interface TagInfo { name: string @@ -93,7 +93,7 @@ export class Tags { 2020.3.1-a01 2020.3.0 */ - export function sortTags(tags: TagInfo[]): TagInfo[] { +export function sortTags(tags: TagInfo[]): TagInfo[] { tags.sort((b, a) => { return new SemVer(a.name).compare(b.name) })