Commit 94063ae 1 parent bc10db4 commit 94063ae Copy full SHA for 94063ae
File tree 4 files changed +23
-12
lines changed
4 files changed +23
-12
lines changed Original file line number Diff line number Diff line change @@ -8,22 +8,41 @@ This action will Setup WSO2 API-CTL in a Lunux environment. Since there are no u
8
8
9
9
** Optional** The version of the APICTL to setup. Default ` "4.1.0" ` .
10
10
11
- The version will be picked from the Github releases : https://github.com/wso2/product-apim-tooling/releases . Ex: 4.1.0
11
+ The version will be picked from the Github releases : https://github.com/wso2/product-apim-tooling/releases . Ex: 4.1.0 or v4.1.0
12
12
13
13
## ` tarball_location `
14
14
15
15
** Optional** A location to an APICTL Tarball if it needs to be downloaded from custom location. No Default
16
16
17
17
## Example usage
18
18
19
- ```
19
+ ``` yaml
20
20
uses : yasassri/setup-wso2-apictl@v1.0
21
21
with :
22
22
version : ' 4.1.0'
23
23
` ` `
24
24
25
- ```
25
+ ` ` ` yaml
26
26
uses : yasassri/setup-wso2-apictl@v1.0
27
27
with :
28
28
tarball_location : ' https://github.com/wso2/product-apim-tooling/releases/download/v4.1.0/apictl-4.1.0-linux-x64.tar.gz'
29
- ```
29
+ ` ` `
30
+
31
+ ### Full workflow
32
+
33
+ ` ` ` yaml
34
+ name : WSO2_APIM
35
+ on : [push, pull_request_target, issues]
36
+
37
+ jobs :
38
+ wso2 :
39
+ runs-on : ubuntu-latest
40
+ permissions :
41
+ issues : write
42
+ pull-requests : write
43
+ steps :
44
+ - uses : yasassri/setup-wso2-apictl@v1.0
45
+ with :
46
+ version : ' v3.2.5'
47
+ - run : apictl version
48
+ ` ` `
Original file line number Diff line number Diff line change @@ -15,9 +15,6 @@ async function setup() {
15
15
var version = core.getInput('version');
16
16
var url = core.getInput('tarball_location');
17
17
18
-
19
- console.log("version:::: " +version)
20
- console.log("URL:::: " +url)
21
18
// If a URL not set, generate the URL based on the version
22
19
if(url == null || url.trim() == '') {
23
20
url = getDownloadURL(version)
@@ -52,7 +49,6 @@ if (require.main === require.cache[eval('__filename')]) {
52
49
function getDownloadURL(version) {
53
50
54
51
// If the version is provided like v4.1.0 strippingout the 'v'
55
- console.log("DEBUG:::: " + version.toLowerCase().includes("v"));
56
52
if(version.toLowerCase().includes("v")) {
57
53
version = version.substring(version.toLowerCase().indexOf('v') + 1);
58
54
}
Original file line number Diff line number Diff line change @@ -9,9 +9,6 @@ async function setup() {
9
9
var version = core . getInput ( 'version' ) ;
10
10
var url = core . getInput ( 'tarball_location' ) ;
11
11
12
-
13
- console . log ( "version:::: " + version )
14
- console . log ( "URL:::: " + url )
15
12
// If a URL not set, generate the URL based on the version
16
13
if ( url == null || url . trim ( ) == '' ) {
17
14
url = getDownloadURL ( version )
Original file line number Diff line number Diff line change 6
6
function getDownloadURL ( version ) {
7
7
8
8
// If the version is provided like v4.1.0 strippingout the 'v'
9
- console . log ( "DEBUG:::: " + version . toLowerCase ( ) . includes ( "v" ) ) ;
10
9
if ( version . toLowerCase ( ) . includes ( "v" ) ) {
11
10
version = version . substring ( version . toLowerCase ( ) . indexOf ( 'v' ) + 1 ) ;
12
11
}
You can’t perform that action at this time.
0 commit comments