File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 9
9
include :
10
10
- os : ubuntu-22.04
11
11
- os : ubuntu-20.04
12
+ - os : macos-13
12
13
- os : macos-12
13
14
- os : macos-11
14
15
- os : windows-2022
15
16
- os : windows-2019
16
17
runs-on : ${{ matrix.os }}
17
18
steps :
18
- - uses : actions/checkout@v3
19
+ - uses : actions/checkout@v4
20
+ - run : echo ${{ runner.os }}
21
+ - run : echo ${{ runner.arch }}
22
+ - run : uname -a
19
23
- name : Set up Fastly CLI
20
24
uses : ./setup
21
25
with :
Original file line number Diff line number Diff line change @@ -30,13 +30,14 @@ async function setup() {
30
30
}
31
31
32
32
async function downloadBin ( bin ) {
33
- let binVersion = core . getInput ( `${ bin } _version` ) ;
33
+ let interfaceName = bin == 'fastly' ? 'cli' : bin
34
+ let binVersion = core . getInput ( `${ interfaceName } _version` ) ;
34
35
35
36
// Normalize version string
36
37
if ( binVersion !== 'latest' ) {
37
38
const valid = semver . valid ( binVersion ) ;
38
39
if ( ! valid ) {
39
- core . setFailed ( `The provided ${ bin } _version (${ binVersion } ) is not a valid SemVer string.` ) ;
40
+ core . setFailed ( `The provided ${ interfaceName } _version (${ binVersion } ) is not a valid SemVer string.` ) ;
40
41
return ;
41
42
}
42
43
@@ -54,7 +55,7 @@ async function downloadBin(bin) {
54
55
const octo = core . getInput ( 'token' ) ? new Octokit ( { authStrategy : createActionAuth } ) : new Octokit ( ) ;
55
56
const repo = {
56
57
owner : 'fastly' ,
57
- repo : bin == 'fastly' ? 'cli' : bin ,
58
+ repo : interfaceName ,
58
59
tag : binVersion
59
60
} ;
60
61
@@ -83,7 +84,7 @@ async function downloadBin(bin) {
83
84
let asset = release . data . assets . find ( ( a ) => a . name . endsWith ( nameSuffix ) ) ;
84
85
85
86
if ( ! asset ) {
86
- core . setFailed ( `Unable to find a suitable binary for release ${ release . data . name } ` ) ;
87
+ core . setFailed ( `Unable to find a suitable binary that ends with ${ nameSuffix } for release ${ release . data . name } ` ) ;
87
88
return ;
88
89
}
89
90
You can’t perform that action at this time.
0 commit comments