File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change
1
+ import { Endpoints } from '@octokit/types/dist-types/generated/Endpoints.d'
2
+ import { Octokit } from '@octokit/rest'
1
3
import fs from 'fs'
2
4
import semverCoerce from 'semver/functions/coerce'
3
5
import semverGte from 'semver/functions/gte'
4
- import { Endpoints } from '@octokit/types'
5
- import { Octokit } from '@octokit/rest'
6
6
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' ]
8
9
9
10
const gomod = ( path : string ) : string => {
10
11
return fs . readFileSync ( path , 'utf8' )
Original file line number Diff line number Diff line change 1
1
import * as core from '@actions/core'
2
2
import {
3
+ getTags ,
3
4
gomod ,
4
5
latest ,
5
- minimal ,
6
6
matrix ,
7
- modulename ,
8
- getTags
7
+ minimal ,
8
+ modulename
9
9
} from './go-versions'
10
10
11
11
async function run ( ) : Promise < void > {
@@ -27,7 +27,7 @@ async function run(): Promise<void> {
27
27
core . info ( `latest go version: ${ lat } (from github.com/golang/go)` )
28
28
core . info ( `go version matrix: ${ mat } (from github.com/golang/go)` )
29
29
} catch ( error ) {
30
- core . setFailed ( error . message )
30
+ core . setFailed ( ( error as Error ) . message )
31
31
}
32
32
}
33
33
You can’t perform that action at this time.
0 commit comments