File tree Expand file tree Collapse file tree 4 files changed +47
-3
lines changed Expand file tree Collapse file tree 4 files changed +47
-3
lines changed Original file line number Diff line number Diff line change 25
25
run :
26
26
shell : bash
27
27
strategy :
28
+ max-parallel : 1
28
29
matrix :
29
30
system :
30
31
- ubuntu-latest
49
50
run :
50
51
shell : bash
51
52
strategy :
53
+ max-parallel : 1
52
54
matrix :
53
55
system :
54
56
- ubuntu-latest
67
69
exit 1
68
70
fi
69
71
echo OK
72
+ test-version-prefix :
73
+ defaults :
74
+ run :
75
+ shell : bash
76
+ strategy :
77
+ max-parallel : 1
78
+ matrix :
79
+ system :
80
+ - ubuntu-latest
81
+ - macos-latest
82
+ - windows-latest
83
+ runs-on : ${{ matrix.system }}
84
+ steps :
85
+ - uses : actions/checkout@v3
86
+ - name : run action with latest
87
+ uses : ./
88
+ with :
89
+ version : 0.15.1
90
+ - name : test CML specific version
91
+ run : |
92
+ if [ "$(cml --version 2>&1)" != '0.15.1' ]; then
93
+ exit 1
94
+ fi
95
+ echo OK
Original file line number Diff line number Diff line change @@ -53,7 +53,17 @@ steps:
53
53
- uses : actions/checkout@v3
54
54
- uses : iterative/setup-cml@v2
55
55
with :
56
- version : ' 0.18.1'
56
+ version : ' v0.18.1'
57
+ ` ` `
58
+
59
+ Without vega tools
60
+ ` ` ` yaml
61
+ steps :
62
+ - uses : actions/checkout@v3
63
+ - uses : iterative/setup-cml@v2
64
+ with :
65
+ version : ' v0.20.0'
66
+ vega : false
57
67
` ` `
58
68
59
69
## Inputs
@@ -93,3 +103,11 @@ When using the `cml runner launch` command a [PAT is required](https://cml.dev/d
93
103
# ## CML functions
94
104
95
105
CML provides several helper functions. See [the docs](https://cml.dev/doc).
106
+
107
+ # # Contributing
108
+
109
+ To get started after cloning the repo, run `npm ci` (clean-install).
110
+ Before pushing changes or opening a PR run `npm run format && npm run lint` to
111
+ ensure that the code is formatted and linted.
112
+
113
+ run `npm run build` to compile the action.
Original file line number Diff line number Diff line change @@ -14938,7 +14938,7 @@ function getCmlDownloadUrl(version, assetName) {
14938
14938
const response = yield octokit.repos.getReleaseByTag({
14939
14939
owner: 'iterative',
14940
14940
repo: 'cml',
14941
- tag: version
14941
+ tag: version.startsWith('v') ? version : `v${version}`
14942
14942
});
14943
14943
release = response.data;
14944
14944
}
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ async function getCmlDownloadUrl(
70
70
const response = await octokit . repos . getReleaseByTag ( {
71
71
owner : 'iterative' ,
72
72
repo : 'cml' ,
73
- tag : version
73
+ tag : version . startsWith ( 'v' ) ? version : `v ${ version } `
74
74
} ) ;
75
75
release = response . data ;
76
76
}
You can’t perform that action at this time.
0 commit comments