Skip to content

Commit

Permalink
fix protoc download uri
Browse files Browse the repository at this point in the history
  • Loading branch information
auguwu committed Jan 20, 2024
1 parent ad6ca71 commit a38accd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/action.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { debug } from '@actions/core';
import { lazy } from '@noelware/utils';

const resolveDownloadUri = ({ version, os, arch }: Record<'version' | 'os' | 'arch', string>) =>
`https://github.com/protocolbuffers/protobuf/releases/download/${version}/protoc-${version}-${os}${arch}.zip`;
`https://github.com/protocolbuffers/protobuf/releases/download/${version}/protoc-${version.replace('v', '')}-${os}${arch}.zip`;

const client = lazy(() => {
const inputs = getInputs();
Expand Down

0 comments on commit a38accd

Please sign in to comment.