Skip to content

Commit a77b9a3

Browse files
committed
preparing for 0.0.2
1 parent 14f75a7 commit a77b9a3

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Action to setup Calcit
22

33
```yml
4-
TODO
4+
- uses: calcit-lang/[email protected]
5+
with:
6+
version: "0.8.38"
57
```
8+
9+
Find latest version on https://github.com/calcit-lang/calcit/releases .

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ inputs:
99
runs:
1010
using: node20
1111
main: dist/index.js
12+
13+
icon: arrow-up-circle
14+
branding:
15+
icon: cloud-snow
16+
color: #ccf

index.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@ let getCapsDownloadUrl = (version) => {
1111
return `https://github.com/calcit-lang/calcit/releases/download/${version}/caps`;
1212
};
1313

14+
const version = core.getInput("version");
15+
1416
async function setup() {
1517
try {
1618
// Get version of tool to be installed
17-
const version = core.getInput("version");
1819

1920
const pathToCr = await tc.downloadTool(
2021
getCrDownloadUrl(version),
@@ -25,6 +26,9 @@ async function setup() {
2526
"/home/runner/bin/caps"
2627
);
2728

29+
// TODO cache
30+
// https://github.com/actions/toolkit/tree/main/packages/tool-cache#cache
31+
2832
// Expose the tool by adding it to the PATH
2933
fs.chmodSync(pathToCr, 0o755);
3034
core.addPath(path.dirname(pathToCr));
@@ -42,6 +46,6 @@ async function setup() {
4246
module.exports = setup;
4347

4448
if (require.main === module) {
45-
console.log("Running setup");
49+
console.log(`Setting up Calcit ${version}`);
4650
setup();
4751
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "setup-cr",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "Setup Calcit runtime",
55
"main": "./index.js",
66
"repository": "[email protected]:calcit-lang/setup-cr.git",

0 commit comments

Comments
 (0)