mirror of
https://github.com/subosito/flutter-action.git
synced 2024-08-16 10:19:50 +02:00
updated user agent
This commit is contained in:
parent
0fdcd6ee16
commit
9267b2d4d1
2 changed files with 2 additions and 2 deletions
|
@ -179,7 +179,7 @@ function determineVersion(version, channel) {
|
||||||
function getLatestVersion(version, channel) {
|
function getLatestVersion(version, channel) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
const releasesUrl = `${storageUrl}/releases_${osName()}.json`;
|
const releasesUrl = `${storageUrl}/releases_${osName()}.json`;
|
||||||
const rest = new restm.RestClient('setup-go');
|
const rest = new restm.RestClient('flutter-action');
|
||||||
const storage = (yield rest.get(releasesUrl)).result;
|
const storage = (yield rest.get(releasesUrl)).result;
|
||||||
if (!storage) {
|
if (!storage) {
|
||||||
throw new Error('unable to get latest version');
|
throw new Error('unable to get latest version');
|
||||||
|
|
|
@ -216,7 +216,7 @@ async function getLatestVersion(
|
||||||
channel: string
|
channel: string
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
const releasesUrl: string = `${storageUrl}/releases_${osName()}.json`;
|
const releasesUrl: string = `${storageUrl}/releases_${osName()}.json`;
|
||||||
const rest: restm.RestClient = new restm.RestClient('setup-go');
|
const rest: restm.RestClient = new restm.RestClient('flutter-action');
|
||||||
const storage: IFlutterStorage | null = (await rest.get<IFlutterStorage | null>(
|
const storage: IFlutterStorage | null = (await rest.get<IFlutterStorage | null>(
|
||||||
releasesUrl
|
releasesUrl
|
||||||
)).result;
|
)).result;
|
||||||
|
|
Loading…
Reference in a new issue