├── .github └── workflows │ └── test.yaml ├── .gitignore ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── action.yml ├── assets └── marker.png ├── dist ├── index.js └── licenses.txt ├── index.js ├── package-lock.json └── package.json /.github/workflows/test.yaml: -------------------------------------------------------------------------------- 1 | name: Tests 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | pull_request: 8 | 9 | defaults: 10 | run: 11 | shell: bash 12 | 13 | jobs: 14 | test: 15 | name: Test 16 | runs-on: ${{ matrix.os }} 17 | strategy: 18 | matrix: 19 | os: [macos-latest, ubuntu-latest] 20 | version: [0.0.18, ""] 21 | steps: 22 | - name: Checkout 23 | uses: actions/checkout@v2 24 | 25 | - name: Setup baselime 26 | uses: ./ 27 | with: 28 | version: ${{ matrix.version }} 29 | 30 | - name: Capture baselime version installed 31 | run: | 32 | export BASELIME_VERSION=$( baselime --version ) 33 | echo 'BASELIME_VERSION_INSTALLED<> $GITHUB_ENV 34 | baselime --version >> $GITHUB_ENV 35 | echo 'EOF' >> $GITHUB_ENV 36 | 37 | - name: Verify 38 | shell: python 39 | env: 40 | BASELIME_VERSION_EXPECTED: ${{ matrix.version }} 41 | run: | 42 | import sys, os 43 | sys.exit( 44 | int(not os.environ["BASELIME_VERSION_EXPECTED"] in os.environ["BASELIME_VERSION_INSTALLED"]) 45 | ) 46 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | 3 | 4 | ## 0.0.1 (30th September 2022) 5 | 6 | - Initial release -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Baselime Github Setup Action 2 | 3 | You want to help improve the Baselime Github Setup Action? Awesome, thank you! 4 | 5 | ## Reporting Issues 6 | 7 | Bugs, feature requests, and development-related questions should be directed to our [GitHub issue tracker](https://github.com/baselime/action-setup-baselime/issues). 8 | 9 | When reporting a bug, please try and provide as much context as possible such as your operating system, Node version, and anything else that might be relevant to the bug. For feature requests, please explain what you're trying to do, and how the requested feature would help you do that. 10 | 11 | ## Building and Packaging the project 12 | 13 | ### Prerequisites: 14 | 15 | - Node 16.15+ Installed. 16 | 17 | ```shell 18 | $ npm run build 19 | ``` 20 | 21 | - Packaging the binary 22 | 23 | ```shell 24 | # Linux 25 | $ npm run package:linux 26 | 27 | # MacOS 28 | $ npm run package:macos 29 | ``` 30 | 31 | ## Setup 32 | 33 | [Fork](https://github.com/baselime/action-setup-baselime) then clone this repository: 34 | 35 | ```bash 36 | $ git clone https://github.com/baselime/action-setup-baselime.git 37 | $ cd action-setup-baselime 38 | $ npm ci 39 | ``` 40 | 41 | Install [@vercel/ncc](https://www.npmjs.com/package/@vercel/ncc) 42 | 43 | ```bash 44 | $ npm i -g @vercel/ncc 45 | ``` 46 | 47 | Compile the module into a single file after making you changes 48 | 49 | ```bash 50 | $ npm run compile 51 | ``` 52 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Baselime 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # [DEPRECATED] :gear: action-setup-baselime 2 | 3 | ![No Maintenance Intended](https://img.shields.io/maintenance/no/2024.svg) 4 | [![Documentation][docs_badge]][docs] 5 | [![License][license_badge]][license] 6 | ![](https://github.com/Baselime/action-setup-baselime/workflows/Tests/badge.svg) 7 | 8 | > Setup the Baselime CLI in Github actions 9 | 10 | ## About 11 | This action sets up the [Baselime CLI](https://baselime.io/docs/cli/install/) in Github Actions. 12 | 13 | This action can be run on `ubuntu-latest`, and `macos-latest` GitHub Actions runners, and will install and expose a specified version of the `baselime` CLI on the runner environment. 14 | 15 | ## Usage 16 | 17 | Create a marker for every new deployment 18 | 19 | ```yaml 20 | steps: 21 | - uses: baselime/action-setup-baselime@v0.0.1 22 | with: 23 | baselime-api-key: ${{ secrets.BASELIME_API_KEY }} # Can be imported from Github Actions Secrets 24 | - name: 📍Create marker 25 | run: | 26 | baselime mark \ 27 | --name Deployment \ 28 | --url "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ 29 | --metadata '${{ toJson(github) }}' \ 30 | --service ${{ github.repository }} 31 | ``` 32 | 33 | The marker will be available on the timeline when you query your telemetry data 34 | 35 | ![](./assets/marker.png) 36 | 37 | 38 | ## Inputs 39 | The actions supports the following inputs: 40 | 41 | - `baselime-api-key`: The API key to use with the Baselime CLI. You can get your API key in the [Baselime console](https://console.baselime.io) 42 | - `version`: The version of `baselime` to install, defaulting to the latest version 43 | 44 | ## Contributing 45 | 46 | Feel free to submit PRs or to fill issues. Every kind of help is appreciated. 47 | 48 | Kindly check our [Contributing](CONTRIBUTING.md) guide on how to propose 49 | bugfixes and improvements, and submitting pull requests to the project. 50 | 51 | ## License 52 | 53 | © Baselime Limited, 2022 54 | 55 | Distributed under MIT License (`The MIT License`). 56 | 57 | See [LICENSE](LICENSE) for more information. 58 | 59 | 60 | 61 | [docs]: https://baselime.io/docs/ 62 | [docs_badge]: https://img.shields.io/badge/docs-reference-blue.svg?style=flat-square 63 | [license]: https://opensource.org/licenses/MIT 64 | [license_badge]: https://img.shields.io/github/license/baselime/cli.svg?color=blue&style=flat-square&ghcache=unused 65 | 66 | -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- 1 | name: 'setup-baselime' 2 | description: 'Install Baselime CLI on Github Actions runners' 3 | branding: 4 | icon: bar-chart-2 5 | color: green 6 | inputs: 7 | baselime-api-key: # id of input 8 | description: 'Api Key' 9 | required: true 10 | version: 11 | description: 'Version of the Baselime CLI to install' 12 | required: false 13 | runs: 14 | using: 'node16' 15 | main: 'dist/index.js' 16 | -------------------------------------------------------------------------------- /assets/marker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baselime/action-setup-baselime/68cc8d08a76bcc6cf8c5aed1b0e4c4a996c8f0fc/assets/marker.png -------------------------------------------------------------------------------- /dist/licenses.txt: -------------------------------------------------------------------------------- 1 | @actions/core 2 | MIT 3 | The MIT License (MIT) 4 | 5 | Copyright 2019 GitHub 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 8 | 9 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 10 | 11 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 12 | 13 | @actions/exec 14 | MIT 15 | The MIT License (MIT) 16 | 17 | Copyright 2019 GitHub 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 20 | 21 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 22 | 23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | 25 | @actions/http-client 26 | MIT 27 | Actions Http Client for Node.js 28 | 29 | Copyright (c) GitHub, Inc. 30 | 31 | All rights reserved. 32 | 33 | MIT License 34 | 35 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and 36 | associated documentation files (the "Software"), to deal in the Software without restriction, 37 | including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 38 | and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, 39 | subject to the following conditions: 40 | 41 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 42 | 43 | THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT 44 | LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN 45 | NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 46 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 47 | SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 48 | 49 | 50 | @actions/io 51 | MIT 52 | The MIT License (MIT) 53 | 54 | Copyright 2019 GitHub 55 | 56 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 57 | 58 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 59 | 60 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 61 | 62 | @actions/tool-cache 63 | MIT 64 | The MIT License (MIT) 65 | 66 | Copyright 2019 GitHub 67 | 68 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 69 | 70 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 71 | 72 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 73 | 74 | @vercel/ncc 75 | MIT 76 | Copyright 2018 ZEIT, Inc. 77 | 78 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 79 | 80 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 81 | 82 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 83 | 84 | fs-extra 85 | MIT 86 | (The MIT License) 87 | 88 | Copyright (c) 2011-2017 JP Richardson 89 | 90 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files 91 | (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, 92 | merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is 93 | furnished to do so, subject to the following conditions: 94 | 95 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 96 | 97 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 98 | WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS 99 | OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 100 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 101 | 102 | 103 | graceful-fs 104 | ISC 105 | The ISC License 106 | 107 | Copyright (c) 2011-2022 Isaac Z. Schlueter, Ben Noordhuis, and Contributors 108 | 109 | Permission to use, copy, modify, and/or distribute this software for any 110 | purpose with or without fee is hereby granted, provided that the above 111 | copyright notice and this permission notice appear in all copies. 112 | 113 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 114 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 115 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 116 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 117 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 118 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 119 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 120 | 121 | 122 | jsonfile 123 | MIT 124 | (The MIT License) 125 | 126 | Copyright (c) 2012-2015, JP Richardson 127 | 128 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files 129 | (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, 130 | merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is 131 | furnished to do so, subject to the following conditions: 132 | 133 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 134 | 135 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 136 | WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS 137 | OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 138 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 139 | 140 | 141 | node-fetch 142 | MIT 143 | The MIT License (MIT) 144 | 145 | Copyright (c) 2016 David Frank 146 | 147 | Permission is hereby granted, free of charge, to any person obtaining a copy 148 | of this software and associated documentation files (the "Software"), to deal 149 | in the Software without restriction, including without limitation the rights 150 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 151 | copies of the Software, and to permit persons to whom the Software is 152 | furnished to do so, subject to the following conditions: 153 | 154 | The above copyright notice and this permission notice shall be included in all 155 | copies or substantial portions of the Software. 156 | 157 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 158 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 159 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 160 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 161 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 162 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 163 | SOFTWARE. 164 | 165 | 166 | 167 | semver 168 | ISC 169 | The ISC License 170 | 171 | Copyright (c) Isaac Z. Schlueter and Contributors 172 | 173 | Permission to use, copy, modify, and/or distribute this software for any 174 | purpose with or without fee is hereby granted, provided that the above 175 | copyright notice and this permission notice appear in all copies. 176 | 177 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 178 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 179 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 180 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 181 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 182 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR 183 | IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 184 | 185 | 186 | tr46 187 | MIT 188 | 189 | tunnel 190 | MIT 191 | The MIT License (MIT) 192 | 193 | Copyright (c) 2012 Koichi Kobayashi 194 | 195 | Permission is hereby granted, free of charge, to any person obtaining a copy 196 | of this software and associated documentation files (the "Software"), to deal 197 | in the Software without restriction, including without limitation the rights 198 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 199 | copies of the Software, and to permit persons to whom the Software is 200 | furnished to do so, subject to the following conditions: 201 | 202 | The above copyright notice and this permission notice shall be included in 203 | all copies or substantial portions of the Software. 204 | 205 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 206 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 207 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 208 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 209 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 210 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 211 | THE SOFTWARE. 212 | 213 | 214 | universalify 215 | MIT 216 | (The MIT License) 217 | 218 | Copyright (c) 2017, Ryan Zimmerman 219 | 220 | Permission is hereby granted, free of charge, to any person obtaining a copy of 221 | this software and associated documentation files (the 'Software'), to deal in 222 | the Software without restriction, including without limitation the rights to 223 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 224 | the Software, and to permit persons to whom the Software is furnished to do so, 225 | subject to the following conditions: 226 | 227 | The above copyright notice and this permission notice shall be included in all 228 | copies or substantial portions of the Software. 229 | 230 | THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 231 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 232 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 233 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 234 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 235 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 236 | 237 | 238 | uuid 239 | MIT 240 | The MIT License (MIT) 241 | 242 | Copyright (c) 2010-2020 Robert Kieffer and other contributors 243 | 244 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: 245 | 246 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 247 | 248 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 249 | 250 | 251 | webidl-conversions 252 | BSD-2-Clause 253 | # The BSD 2-Clause License 254 | 255 | Copyright (c) 2014, Domenic Denicola 256 | All rights reserved. 257 | 258 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 259 | 260 | 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 261 | 262 | 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 263 | 264 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 265 | 266 | 267 | whatwg-url 268 | MIT 269 | The MIT License (MIT) 270 | 271 | Copyright (c) 2015–2016 Sebastian Mayr 272 | 273 | Permission is hereby granted, free of charge, to any person obtaining a copy 274 | of this software and associated documentation files (the "Software"), to deal 275 | in the Software without restriction, including without limitation the rights 276 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 277 | copies of the Software, and to permit persons to whom the Software is 278 | furnished to do so, subject to the following conditions: 279 | 280 | The above copyright notice and this permission notice shall be included in 281 | all copies or substantial portions of the Software. 282 | 283 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 284 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 285 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 286 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 287 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 288 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 289 | THE SOFTWARE. 290 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const core = require("@actions/core"); 2 | const tc = require("@actions/tool-cache"); 3 | const os = require("os"); 4 | const path = require("path"); 5 | const fs = require("fs-extra"); 6 | const fetch = require("node-fetch"); 7 | 8 | async function setup() { 9 | const version = core.getInput("version"); 10 | const apiKey = core.getInput("baselime-api-key"); 11 | 12 | // Download the specific version of the tool, e.g. as a tarball 13 | const { url } = getDownloadURL(version || (await getLatestCLIVersion())); 14 | const pathToTarball = await tc.downloadTool(url); 15 | 16 | // Extract the tarball onto the runner 17 | const pathToCLI = await tc.extractTar(pathToTarball); 18 | 19 | // Expose the tool by adding it to the PATH 20 | core.addPath(pathToCLI); 21 | 22 | await fs.outputJson(getPath(), { apiKey }); 23 | } 24 | 25 | function getDownloadURL(version) { 26 | const filename = "baselime"; 27 | const url = `https://github.com/Baselime/cli/releases/download/v${version}/${filename}-${os.platform()}-x64-v${version}.tar.gz`; 28 | return { 29 | url, 30 | }; 31 | } 32 | 33 | function getPath() { 34 | return path.join(os.homedir(), ".config", "baselime", `default.json`); 35 | } 36 | 37 | async function getLatestCLIVersion() { 38 | try { 39 | const res = await ( 40 | await fetch("https://api.github.com/repos/baselime/cli/releases/latest") 41 | ).json(); 42 | return res.tag_name.replace("v", ""); 43 | } catch (error) { 44 | core.setFailed( 45 | `There was an error getting the latest version of the Baselime CLI ${error}` 46 | ); 47 | } 48 | } 49 | 50 | module.exports = setup; 51 | 52 | if (require.main === module) { 53 | setup(); 54 | } 55 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "action-setup-baselime", 3 | "version": "1.0.0", 4 | "lockfileVersion": 2, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "action-setup-baselime", 9 | "version": "1.0.0", 10 | "license": "MIT", 11 | "dependencies": { 12 | "@actions/core": "^1.10.0", 13 | "@actions/github": "^5.1.0", 14 | "@actions/tool-cache": "^2.0.1", 15 | "fs-extra": "^10.1.0", 16 | "node-fetch": "^2.6.7" 17 | }, 18 | "devDependencies": { 19 | "@vercel/ncc": "^0.34.0" 20 | } 21 | }, 22 | "node_modules/@actions/core": { 23 | "version": "1.10.0", 24 | "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz", 25 | "integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==", 26 | "dependencies": { 27 | "@actions/http-client": "^2.0.1", 28 | "uuid": "^8.3.2" 29 | } 30 | }, 31 | "node_modules/@actions/exec": { 32 | "version": "1.1.1", 33 | "resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.1.1.tgz", 34 | "integrity": "sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==", 35 | "dependencies": { 36 | "@actions/io": "^1.0.1" 37 | } 38 | }, 39 | "node_modules/@actions/github": { 40 | "version": "5.1.0", 41 | "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.0.tgz", 42 | "integrity": "sha512-tuI80F7JQIhg77ZTTgUAPpVD7ZnP9oHSPN8xw7LOwtA4vEMbAjWJNbmLBfV7xua7r016GyjzWLuec5cs8f/a8A==", 43 | "dependencies": { 44 | "@actions/http-client": "^2.0.1", 45 | "@octokit/core": "^3.6.0", 46 | "@octokit/plugin-paginate-rest": "^2.17.0", 47 | "@octokit/plugin-rest-endpoint-methods": "^5.13.0" 48 | } 49 | }, 50 | "node_modules/@actions/http-client": { 51 | "version": "2.0.1", 52 | "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.0.1.tgz", 53 | "integrity": "sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==", 54 | "dependencies": { 55 | "tunnel": "^0.0.6" 56 | } 57 | }, 58 | "node_modules/@actions/io": { 59 | "version": "1.1.2", 60 | "resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.2.tgz", 61 | "integrity": "sha512-d+RwPlMp+2qmBfeLYPLXuSRykDIFEwdTA0MMxzS9kh4kvP1ftrc/9fzy6pX6qAjthdXruHQ6/6kjT/DNo5ALuw==" 62 | }, 63 | "node_modules/@actions/tool-cache": { 64 | "version": "2.0.1", 65 | "resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-2.0.1.tgz", 66 | "integrity": "sha512-iPU+mNwrbA8jodY8eyo/0S/QqCKDajiR8OxWTnSk/SnYg0sj8Hp4QcUEVC1YFpHWXtrfbQrE13Jz4k4HXJQKcA==", 67 | "dependencies": { 68 | "@actions/core": "^1.2.6", 69 | "@actions/exec": "^1.0.0", 70 | "@actions/http-client": "^2.0.1", 71 | "@actions/io": "^1.1.1", 72 | "semver": "^6.1.0", 73 | "uuid": "^3.3.2" 74 | } 75 | }, 76 | "node_modules/@actions/tool-cache/node_modules/uuid": { 77 | "version": "3.4.0", 78 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", 79 | "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", 80 | "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", 81 | "bin": { 82 | "uuid": "bin/uuid" 83 | } 84 | }, 85 | "node_modules/@octokit/auth-token": { 86 | "version": "2.5.0", 87 | "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz", 88 | "integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==", 89 | "dependencies": { 90 | "@octokit/types": "^6.0.3" 91 | } 92 | }, 93 | "node_modules/@octokit/core": { 94 | "version": "3.6.0", 95 | "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz", 96 | "integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==", 97 | "dependencies": { 98 | "@octokit/auth-token": "^2.4.4", 99 | "@octokit/graphql": "^4.5.8", 100 | "@octokit/request": "^5.6.3", 101 | "@octokit/request-error": "^2.0.5", 102 | "@octokit/types": "^6.0.3", 103 | "before-after-hook": "^2.2.0", 104 | "universal-user-agent": "^6.0.0" 105 | } 106 | }, 107 | "node_modules/@octokit/endpoint": { 108 | "version": "6.0.12", 109 | "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", 110 | "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==", 111 | "dependencies": { 112 | "@octokit/types": "^6.0.3", 113 | "is-plain-object": "^5.0.0", 114 | "universal-user-agent": "^6.0.0" 115 | } 116 | }, 117 | "node_modules/@octokit/graphql": { 118 | "version": "4.8.0", 119 | "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz", 120 | "integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==", 121 | "dependencies": { 122 | "@octokit/request": "^5.6.0", 123 | "@octokit/types": "^6.0.3", 124 | "universal-user-agent": "^6.0.0" 125 | } 126 | }, 127 | "node_modules/@octokit/openapi-types": { 128 | "version": "12.11.0", 129 | "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz", 130 | "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==" 131 | }, 132 | "node_modules/@octokit/plugin-paginate-rest": { 133 | "version": "2.21.3", 134 | "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.21.3.tgz", 135 | "integrity": "sha512-aCZTEf0y2h3OLbrgKkrfFdjRL6eSOo8komneVQJnYecAxIej7Bafor2xhuDJOIFau4pk0i/P28/XgtbyPF0ZHw==", 136 | "dependencies": { 137 | "@octokit/types": "^6.40.0" 138 | }, 139 | "peerDependencies": { 140 | "@octokit/core": ">=2" 141 | } 142 | }, 143 | "node_modules/@octokit/plugin-rest-endpoint-methods": { 144 | "version": "5.16.2", 145 | "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.16.2.tgz", 146 | "integrity": "sha512-8QFz29Fg5jDuTPXVtey05BLm7OB+M8fnvE64RNegzX7U+5NUXcOcnpTIK0YfSHBg8gYd0oxIq3IZTe9SfPZiRw==", 147 | "dependencies": { 148 | "@octokit/types": "^6.39.0", 149 | "deprecation": "^2.3.1" 150 | }, 151 | "peerDependencies": { 152 | "@octokit/core": ">=3" 153 | } 154 | }, 155 | "node_modules/@octokit/request": { 156 | "version": "5.6.3", 157 | "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz", 158 | "integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==", 159 | "dependencies": { 160 | "@octokit/endpoint": "^6.0.1", 161 | "@octokit/request-error": "^2.1.0", 162 | "@octokit/types": "^6.16.1", 163 | "is-plain-object": "^5.0.0", 164 | "node-fetch": "^2.6.7", 165 | "universal-user-agent": "^6.0.0" 166 | } 167 | }, 168 | "node_modules/@octokit/request-error": { 169 | "version": "2.1.0", 170 | "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", 171 | "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", 172 | "dependencies": { 173 | "@octokit/types": "^6.0.3", 174 | "deprecation": "^2.0.0", 175 | "once": "^1.4.0" 176 | } 177 | }, 178 | "node_modules/@octokit/types": { 179 | "version": "6.41.0", 180 | "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz", 181 | "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==", 182 | "dependencies": { 183 | "@octokit/openapi-types": "^12.11.0" 184 | } 185 | }, 186 | "node_modules/@vercel/ncc": { 187 | "version": "0.34.0", 188 | "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.34.0.tgz", 189 | "integrity": "sha512-G9h5ZLBJ/V57Ou9vz5hI8pda/YQX5HQszCs3AmIus3XzsmRn/0Ptic5otD3xVST8QLKk7AMk7AqpsyQGN7MZ9A==", 190 | "dev": true, 191 | "bin": { 192 | "ncc": "dist/ncc/cli.js" 193 | } 194 | }, 195 | "node_modules/before-after-hook": { 196 | "version": "2.2.2", 197 | "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.2.tgz", 198 | "integrity": "sha512-3pZEU3NT5BFUo/AD5ERPWOgQOCZITni6iavr5AUw5AUwQjMlI0kzu5btnyD39AF0gUEsDPwJT+oY1ORBJijPjQ==" 199 | }, 200 | "node_modules/deprecation": { 201 | "version": "2.3.1", 202 | "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", 203 | "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" 204 | }, 205 | "node_modules/fs-extra": { 206 | "version": "10.1.0", 207 | "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", 208 | "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", 209 | "dependencies": { 210 | "graceful-fs": "^4.2.0", 211 | "jsonfile": "^6.0.1", 212 | "universalify": "^2.0.0" 213 | }, 214 | "engines": { 215 | "node": ">=12" 216 | } 217 | }, 218 | "node_modules/graceful-fs": { 219 | "version": "4.2.10", 220 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", 221 | "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" 222 | }, 223 | "node_modules/is-plain-object": { 224 | "version": "5.0.0", 225 | "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", 226 | "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", 227 | "engines": { 228 | "node": ">=0.10.0" 229 | } 230 | }, 231 | "node_modules/jsonfile": { 232 | "version": "6.1.0", 233 | "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", 234 | "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", 235 | "dependencies": { 236 | "universalify": "^2.0.0" 237 | }, 238 | "optionalDependencies": { 239 | "graceful-fs": "^4.1.6" 240 | } 241 | }, 242 | "node_modules/node-fetch": { 243 | "version": "2.6.7", 244 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", 245 | "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", 246 | "dependencies": { 247 | "whatwg-url": "^5.0.0" 248 | }, 249 | "engines": { 250 | "node": "4.x || >=6.0.0" 251 | }, 252 | "peerDependencies": { 253 | "encoding": "^0.1.0" 254 | }, 255 | "peerDependenciesMeta": { 256 | "encoding": { 257 | "optional": true 258 | } 259 | } 260 | }, 261 | "node_modules/once": { 262 | "version": "1.4.0", 263 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 264 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 265 | "dependencies": { 266 | "wrappy": "1" 267 | } 268 | }, 269 | "node_modules/semver": { 270 | "version": "6.3.0", 271 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 272 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 273 | "bin": { 274 | "semver": "bin/semver.js" 275 | } 276 | }, 277 | "node_modules/tr46": { 278 | "version": "0.0.3", 279 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", 280 | "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" 281 | }, 282 | "node_modules/tunnel": { 283 | "version": "0.0.6", 284 | "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", 285 | "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", 286 | "engines": { 287 | "node": ">=0.6.11 <=0.7.0 || >=0.7.3" 288 | } 289 | }, 290 | "node_modules/universal-user-agent": { 291 | "version": "6.0.0", 292 | "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", 293 | "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==" 294 | }, 295 | "node_modules/universalify": { 296 | "version": "2.0.0", 297 | "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", 298 | "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", 299 | "engines": { 300 | "node": ">= 10.0.0" 301 | } 302 | }, 303 | "node_modules/uuid": { 304 | "version": "8.3.2", 305 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", 306 | "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", 307 | "bin": { 308 | "uuid": "dist/bin/uuid" 309 | } 310 | }, 311 | "node_modules/webidl-conversions": { 312 | "version": "3.0.1", 313 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", 314 | "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" 315 | }, 316 | "node_modules/whatwg-url": { 317 | "version": "5.0.0", 318 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", 319 | "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", 320 | "dependencies": { 321 | "tr46": "~0.0.3", 322 | "webidl-conversions": "^3.0.0" 323 | } 324 | }, 325 | "node_modules/wrappy": { 326 | "version": "1.0.2", 327 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 328 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" 329 | } 330 | }, 331 | "dependencies": { 332 | "@actions/core": { 333 | "version": "1.10.0", 334 | "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz", 335 | "integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==", 336 | "requires": { 337 | "@actions/http-client": "^2.0.1", 338 | "uuid": "^8.3.2" 339 | } 340 | }, 341 | "@actions/exec": { 342 | "version": "1.1.1", 343 | "resolved": "https://registry.npmjs.org/@actions/exec/-/exec-1.1.1.tgz", 344 | "integrity": "sha512-+sCcHHbVdk93a0XT19ECtO/gIXoxvdsgQLzb2fE2/5sIZmWQuluYyjPQtrtTHdU1YzTZ7bAPN4sITq2xi1679w==", 345 | "requires": { 346 | "@actions/io": "^1.0.1" 347 | } 348 | }, 349 | "@actions/github": { 350 | "version": "5.1.0", 351 | "resolved": "https://registry.npmjs.org/@actions/github/-/github-5.1.0.tgz", 352 | "integrity": "sha512-tuI80F7JQIhg77ZTTgUAPpVD7ZnP9oHSPN8xw7LOwtA4vEMbAjWJNbmLBfV7xua7r016GyjzWLuec5cs8f/a8A==", 353 | "requires": { 354 | "@actions/http-client": "^2.0.1", 355 | "@octokit/core": "^3.6.0", 356 | "@octokit/plugin-paginate-rest": "^2.17.0", 357 | "@octokit/plugin-rest-endpoint-methods": "^5.13.0" 358 | } 359 | }, 360 | "@actions/http-client": { 361 | "version": "2.0.1", 362 | "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.0.1.tgz", 363 | "integrity": "sha512-PIXiMVtz6VvyaRsGY268qvj57hXQEpsYogYOu2nrQhlf+XCGmZstmuZBbAybUl1nQGnvS1k1eEsQ69ZoD7xlSw==", 364 | "requires": { 365 | "tunnel": "^0.0.6" 366 | } 367 | }, 368 | "@actions/io": { 369 | "version": "1.1.2", 370 | "resolved": "https://registry.npmjs.org/@actions/io/-/io-1.1.2.tgz", 371 | "integrity": "sha512-d+RwPlMp+2qmBfeLYPLXuSRykDIFEwdTA0MMxzS9kh4kvP1ftrc/9fzy6pX6qAjthdXruHQ6/6kjT/DNo5ALuw==" 372 | }, 373 | "@actions/tool-cache": { 374 | "version": "2.0.1", 375 | "resolved": "https://registry.npmjs.org/@actions/tool-cache/-/tool-cache-2.0.1.tgz", 376 | "integrity": "sha512-iPU+mNwrbA8jodY8eyo/0S/QqCKDajiR8OxWTnSk/SnYg0sj8Hp4QcUEVC1YFpHWXtrfbQrE13Jz4k4HXJQKcA==", 377 | "requires": { 378 | "@actions/core": "^1.2.6", 379 | "@actions/exec": "^1.0.0", 380 | "@actions/http-client": "^2.0.1", 381 | "@actions/io": "^1.1.1", 382 | "semver": "^6.1.0", 383 | "uuid": "^3.3.2" 384 | }, 385 | "dependencies": { 386 | "uuid": { 387 | "version": "3.4.0", 388 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", 389 | "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" 390 | } 391 | } 392 | }, 393 | "@octokit/auth-token": { 394 | "version": "2.5.0", 395 | "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-2.5.0.tgz", 396 | "integrity": "sha512-r5FVUJCOLl19AxiuZD2VRZ/ORjp/4IN98Of6YJoJOkY75CIBuYfmiNHGrDwXr+aLGG55igl9QrxX3hbiXlLb+g==", 397 | "requires": { 398 | "@octokit/types": "^6.0.3" 399 | } 400 | }, 401 | "@octokit/core": { 402 | "version": "3.6.0", 403 | "resolved": "https://registry.npmjs.org/@octokit/core/-/core-3.6.0.tgz", 404 | "integrity": "sha512-7RKRKuA4xTjMhY+eG3jthb3hlZCsOwg3rztWh75Xc+ShDWOfDDATWbeZpAHBNRpm4Tv9WgBMOy1zEJYXG6NJ7Q==", 405 | "requires": { 406 | "@octokit/auth-token": "^2.4.4", 407 | "@octokit/graphql": "^4.5.8", 408 | "@octokit/request": "^5.6.3", 409 | "@octokit/request-error": "^2.0.5", 410 | "@octokit/types": "^6.0.3", 411 | "before-after-hook": "^2.2.0", 412 | "universal-user-agent": "^6.0.0" 413 | } 414 | }, 415 | "@octokit/endpoint": { 416 | "version": "6.0.12", 417 | "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-6.0.12.tgz", 418 | "integrity": "sha512-lF3puPwkQWGfkMClXb4k/eUT/nZKQfxinRWJrdZaJO85Dqwo/G0yOC434Jr2ojwafWJMYqFGFa5ms4jJUgujdA==", 419 | "requires": { 420 | "@octokit/types": "^6.0.3", 421 | "is-plain-object": "^5.0.0", 422 | "universal-user-agent": "^6.0.0" 423 | } 424 | }, 425 | "@octokit/graphql": { 426 | "version": "4.8.0", 427 | "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz", 428 | "integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==", 429 | "requires": { 430 | "@octokit/request": "^5.6.0", 431 | "@octokit/types": "^6.0.3", 432 | "universal-user-agent": "^6.0.0" 433 | } 434 | }, 435 | "@octokit/openapi-types": { 436 | "version": "12.11.0", 437 | "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz", 438 | "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==" 439 | }, 440 | "@octokit/plugin-paginate-rest": { 441 | "version": "2.21.3", 442 | "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.21.3.tgz", 443 | "integrity": "sha512-aCZTEf0y2h3OLbrgKkrfFdjRL6eSOo8komneVQJnYecAxIej7Bafor2xhuDJOIFau4pk0i/P28/XgtbyPF0ZHw==", 444 | "requires": { 445 | "@octokit/types": "^6.40.0" 446 | } 447 | }, 448 | "@octokit/plugin-rest-endpoint-methods": { 449 | "version": "5.16.2", 450 | "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.16.2.tgz", 451 | "integrity": "sha512-8QFz29Fg5jDuTPXVtey05BLm7OB+M8fnvE64RNegzX7U+5NUXcOcnpTIK0YfSHBg8gYd0oxIq3IZTe9SfPZiRw==", 452 | "requires": { 453 | "@octokit/types": "^6.39.0", 454 | "deprecation": "^2.3.1" 455 | } 456 | }, 457 | "@octokit/request": { 458 | "version": "5.6.3", 459 | "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.3.tgz", 460 | "integrity": "sha512-bFJl0I1KVc9jYTe9tdGGpAMPy32dLBXXo1dS/YwSCTL/2nd9XeHsY616RE3HPXDVk+a+dBuzyz5YdlXwcDTr2A==", 461 | "requires": { 462 | "@octokit/endpoint": "^6.0.1", 463 | "@octokit/request-error": "^2.1.0", 464 | "@octokit/types": "^6.16.1", 465 | "is-plain-object": "^5.0.0", 466 | "node-fetch": "^2.6.7", 467 | "universal-user-agent": "^6.0.0" 468 | } 469 | }, 470 | "@octokit/request-error": { 471 | "version": "2.1.0", 472 | "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-2.1.0.tgz", 473 | "integrity": "sha512-1VIvgXxs9WHSjicsRwq8PlR2LR2x6DwsJAaFgzdi0JfJoGSO8mYI/cHJQ+9FbN21aa+DrgNLnwObmyeSC8Rmpg==", 474 | "requires": { 475 | "@octokit/types": "^6.0.3", 476 | "deprecation": "^2.0.0", 477 | "once": "^1.4.0" 478 | } 479 | }, 480 | "@octokit/types": { 481 | "version": "6.41.0", 482 | "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz", 483 | "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==", 484 | "requires": { 485 | "@octokit/openapi-types": "^12.11.0" 486 | } 487 | }, 488 | "@vercel/ncc": { 489 | "version": "0.34.0", 490 | "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.34.0.tgz", 491 | "integrity": "sha512-G9h5ZLBJ/V57Ou9vz5hI8pda/YQX5HQszCs3AmIus3XzsmRn/0Ptic5otD3xVST8QLKk7AMk7AqpsyQGN7MZ9A==", 492 | "dev": true 493 | }, 494 | "before-after-hook": { 495 | "version": "2.2.2", 496 | "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.2.tgz", 497 | "integrity": "sha512-3pZEU3NT5BFUo/AD5ERPWOgQOCZITni6iavr5AUw5AUwQjMlI0kzu5btnyD39AF0gUEsDPwJT+oY1ORBJijPjQ==" 498 | }, 499 | "deprecation": { 500 | "version": "2.3.1", 501 | "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz", 502 | "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==" 503 | }, 504 | "fs-extra": { 505 | "version": "10.1.0", 506 | "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-10.1.0.tgz", 507 | "integrity": "sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==", 508 | "requires": { 509 | "graceful-fs": "^4.2.0", 510 | "jsonfile": "^6.0.1", 511 | "universalify": "^2.0.0" 512 | } 513 | }, 514 | "graceful-fs": { 515 | "version": "4.2.10", 516 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.10.tgz", 517 | "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==" 518 | }, 519 | "is-plain-object": { 520 | "version": "5.0.0", 521 | "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", 522 | "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==" 523 | }, 524 | "jsonfile": { 525 | "version": "6.1.0", 526 | "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz", 527 | "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==", 528 | "requires": { 529 | "graceful-fs": "^4.1.6", 530 | "universalify": "^2.0.0" 531 | } 532 | }, 533 | "node-fetch": { 534 | "version": "2.6.7", 535 | "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", 536 | "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", 537 | "requires": { 538 | "whatwg-url": "^5.0.0" 539 | } 540 | }, 541 | "once": { 542 | "version": "1.4.0", 543 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 544 | "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", 545 | "requires": { 546 | "wrappy": "1" 547 | } 548 | }, 549 | "semver": { 550 | "version": "6.3.0", 551 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 552 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" 553 | }, 554 | "tr46": { 555 | "version": "0.0.3", 556 | "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", 557 | "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" 558 | }, 559 | "tunnel": { 560 | "version": "0.0.6", 561 | "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", 562 | "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==" 563 | }, 564 | "universal-user-agent": { 565 | "version": "6.0.0", 566 | "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.0.tgz", 567 | "integrity": "sha512-isyNax3wXoKaulPDZWHQqbmIx1k2tb9fb3GGDBRxCscfYV2Ch7WxPArBsFEG8s/safwXTT7H4QGhaIkTp9447w==" 568 | }, 569 | "universalify": { 570 | "version": "2.0.0", 571 | "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz", 572 | "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==" 573 | }, 574 | "uuid": { 575 | "version": "8.3.2", 576 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", 577 | "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==" 578 | }, 579 | "webidl-conversions": { 580 | "version": "3.0.1", 581 | "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", 582 | "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" 583 | }, 584 | "whatwg-url": { 585 | "version": "5.0.0", 586 | "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", 587 | "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", 588 | "requires": { 589 | "tr46": "~0.0.3", 590 | "webidl-conversions": "^3.0.0" 591 | } 592 | }, 593 | "wrappy": { 594 | "version": "1.0.2", 595 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 596 | "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" 597 | } 598 | } 599 | } 600 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "action-setup-baselime", 3 | "version": "1.0.0", 4 | "description": "Setup the Baselime CLI in Github actions", 5 | "main": "index.js", 6 | "scripts": { 7 | "compile": "ncc build index.js --license licenses.txt" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "git+https://github.com/Baselime/action-setup-baselime.git" 12 | }, 13 | "keywords": [ 14 | "Baselime", 15 | "Github Action", 16 | "Action", 17 | "Github" 18 | ], 19 | "author": "Boris Tane", 20 | "license": "MIT", 21 | "bugs": { 22 | "url": "https://github.com/Baselime/action-setup-baselime/issues" 23 | }, 24 | "homepage": "https://github.com/Baselime/action-setup-baselime#readme", 25 | "dependencies": { 26 | "@actions/core": "^1.10.0", 27 | "@actions/github": "^5.1.0", 28 | "@actions/tool-cache": "^2.0.1", 29 | "fs-extra": "^10.1.0", 30 | "node-fetch": "^2.6.7" 31 | }, 32 | "devDependencies": { 33 | "@vercel/ncc": "^0.34.0" 34 | } 35 | } 36 | --------------------------------------------------------------------------------