Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
fix: update to handle repo renaming. Pin to alpha.36
Browse files Browse the repository at this point in the history
  • Loading branch information
dutterbutter committed Dec 6, 2024
1 parent 298eea4 commit 6612158
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
### ⚠️ Warning

This action has been **archived** in favor of [`anvil-zksync-action`](https://github.com/dutterbutter/anvil-zksync-action).
By default, this action fetches version `v0.1.0-alpha.34` of `era-test-node` unless a different tag is specified, as this was the last release before the binary was renamed. Tags past this may not work given the binary difference.
By default, this action fetches version `v0.1.0-alpha.36` of `era-test-node` unless a different tag is specified, as this was the last release before the binary was renamed. Tags past this may not work given the binary difference.

## Description

Expand Down
2 changes: 1 addition & 1 deletion dist/index.cjs

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ async function getDownloadUrl() {
let apiUrl;
if (ERA_TEST_NODE_RELEASE_TAG === "latest") {
apiUrl =
"https://api.github.com/repos/matter-labs/era-test-node/releases/tags/v0.1.0-alpha.34";
"https://api.github.com/repos/matter-labs/era-test-node/releases/tags/v0.1.0-alpha.36";
} else {
apiUrl = `https://api.github.com/repos/matter-labs/era-test-node/releases/tags/${ERA_TEST_NODE_RELEASE_TAG}`;
}

const response = await fetch(apiUrl);
if (!response.ok) {
throw new Error(
`Failed to fetch release info for tag ${ERA_TEST_NODE_RELEASE_TAG}. HTTP Status: ${response.status}`
`Failed to fetch release info for tag ${ERA_TEST_NODE_RELEASE_TAG}. era-test-node-action will only support latest (v0.1.0-alpha.36) in favour of anvil-zksync-action. HTTP Status: ${response.status}`
);
}

Expand Down

0 comments on commit 6612158

Please sign in to comment.