Skip to content

Commit 715aea1

Browse files
committed
Make code match updated dependencies
1 parent c7b5974 commit 715aea1

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

src/go-versions.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
import {Endpoints} from '@octokit/types/dist-types/generated/Endpoints.d'
2+
import {Octokit} from '@octokit/rest'
13
import fs from 'fs'
24
import semverCoerce from 'semver/functions/coerce'
35
import semverGte from 'semver/functions/gte'
4-
import {Endpoints} from '@octokit/types'
5-
import {Octokit} from '@octokit/rest'
66

7-
export type listTags = Endpoints['GET /repos/{owner}/{repo}/tags']['response']['data']
7+
export type listTags =
8+
Endpoints['GET /repos/{owner}/{repo}/tags']['response']['data']
89

910
const gomod = (path: string): string => {
1011
return fs.readFileSync(path, 'utf8')

src/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import * as core from '@actions/core'
22
import {
3+
getTags,
34
gomod,
45
latest,
5-
minimal,
66
matrix,
7-
modulename,
8-
getTags
7+
minimal,
8+
modulename
99
} from './go-versions'
1010

1111
async function run(): Promise<void> {
@@ -27,7 +27,7 @@ async function run(): Promise<void> {
2727
core.info(`latest go version: ${lat} (from github.com/golang/go)`)
2828
core.info(`go version matrix: ${mat} (from github.com/golang/go)`)
2929
} catch (error) {
30-
core.setFailed(error.message)
30+
core.setFailed((error as Error).message)
3131
}
3232
}
3333

0 commit comments

Comments
 (0)