Skip to content

Commit 31af29c

Browse files
committed
Fix installing a particular Crystal release
1 parent a55b6c6 commit 31af29c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
- {}
1818
- {shards: false}
1919
- {shards: true}
20-
- {shards: '0.13.0', crystal: '0.35.1'}
20+
- {shards: '0.12.0', crystal: '0.35.1'}
2121
- {shards: latest, crystal: latest}
2222
- {shards: nightly, crystal: nightly}
2323
exclude:
2424
- os: windows-latest
25-
config: {shards: '0.13.0', crystal: '0.35.1'}
25+
config: {shards: '0.12.0', crystal: '0.35.1'}
2626
- os: windows-latest
2727
config: {shards: latest, crystal: latest}
2828

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ jobs:
1717
- {}
1818
- {shards: false}
1919
- {shards: true}
20-
- {shards: '0.13.0', crystal: '0.35.1'}
20+
- {shards: '0.12.0', crystal: '0.35.1'}
2121
- {shards: latest, crystal: latest}
2222
- {shards: nightly, crystal: nightly}
2323
exclude:
2424
- os: windows-latest
25-
config: {shards: '0.13.0', crystal: '0.35.1'}
25+
config: {shards: '0.12.0', crystal: '0.35.1'}
2626
- os: windows-latest
2727
config: {shards: latest, crystal: latest}
2828

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ const GitHubApiBaseShards = "/repos/crystal-lang/shards";
227227
const CircleApiBase = "https://circleci.com/api/v1.1/project/github/crystal-lang/crystal";
228228

229229
async function findRelease({name, apiBase, tag}) {
230-
Core.info(`Looking for latest ${name} release`);
230+
Core.info(`Looking for ${name} release (${tag || "latest"})`);
231231
const releasesResp = await githubGet({
232232
url: apiBase + "/releases/" + (tag ? "tags/" + tag : "latest"),
233233
});
@@ -248,7 +248,7 @@ async function findLatestCommit({name, apiBase, branch = "master"}) {
248248
}
249249

250250
async function downloadCrystalRelease(suffix, version = null) {
251-
const release = await findRelease({name: "Crystal", apiBase: GitHubApiBase, version});
251+
const release = await findRelease({name: "Crystal", apiBase: GitHubApiBase, tag: version});
252252
Core.setOutput("crystal", release["tag_name"]);
253253

254254
const asset = release["assets"].find((a) => a["name"].endsWith([`-${suffix}.tar.gz`]));

0 commit comments

Comments
 (0)