Skip to content

Commit

Permalink
re-use new releases assets url path
Browse files Browse the repository at this point in the history
  • Loading branch information
subosito committed Jun 14, 2021
1 parent a471b15 commit 4389e6c
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion __tests__/data/releases_linux.json
@@ -1,5 +1,5 @@
{
"base_url": "https://storage.googleapis.com/flutter_infra/releases",
"base_url": "https://storage.googleapis.com/flutter_infra_release/releases",
"current_release": {
"beta": "0941968447ea8058e56e1479f7e53147149b739e",
"dev": "0941968447ea8058e56e1479f7e53147149b739e",
Expand Down
2 changes: 1 addition & 1 deletion __tests__/data/releases_macos.json
@@ -1,5 +1,5 @@
{
"base_url": "https://storage.googleapis.com/flutter_infra/releases",
"base_url": "https://storage.googleapis.com/flutter_infra_release/releases",
"current_release": {
"beta": "0941968447ea8058e56e1479f7e53147149b739e",
"dev": "0941968447ea8058e56e1479f7e53147149b739e",
Expand Down
2 changes: 1 addition & 1 deletion __tests__/data/releases_windows.json
@@ -1,5 +1,5 @@
{
"base_url": "https://storage.googleapis.com/flutter_infra/releases",
"base_url": "https://storage.googleapis.com/flutter_infra_release/releases",
"current_release": {
"beta": "0941968447ea8058e56e1479f7e53147149b739e",
"dev": "0941968447ea8058e56e1479f7e53147149b739e",
Expand Down
2 changes: 1 addition & 1 deletion __tests__/installer.test.ts
Expand Up @@ -23,7 +23,7 @@ describe('installer tests', () => {
beforeEach(() => {
const platform = release.getPlatform();
nock('https://storage.googleapis.com', {allowUnmocked: true})
.get(`/flutter_infra/releases/releases_${platform}.json`)
.get(`/flutter_infra_release/releases/releases_${platform}.json`)
.replyWithFile(200, path.join(dataDir, `releases_${platform}.json`));
});

Expand Down
2 changes: 1 addition & 1 deletion __tests__/release.test.ts
Expand Up @@ -21,7 +21,7 @@ describe('release tests', () => {
const dataDir = path.join(__dirname, 'data');

nock('https://storage.googleapis.com', {allowUnmocked: true})
.get(`/flutter_infra/releases/releases_${platform}.json`)
.get(`/flutter_infra_release/releases/releases_${platform}.json`)
.replyWithFile(200, path.join(dataDir, `releases_${platform}.json`));
});

Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Expand Up @@ -231,7 +231,7 @@ exports.determineVersion = exports.getPlatform = exports.storageUrl = void 0;
const core = __importStar(__nccwpck_require__(2186));
const httpm = __importStar(__nccwpck_require__(9925));
const semver = __importStar(__nccwpck_require__(1383));
exports.storageUrl = 'https://storage.googleapis.com/flutter_infra/releases';
exports.storageUrl = 'https://storage.googleapis.com/flutter_infra_release/releases';
function getPlatform() {
const platform = process.platform;
if (platform == 'win32') {
Expand Down
2 changes: 1 addition & 1 deletion src/release.ts
Expand Up @@ -3,7 +3,7 @@ import * as httpm from '@actions/http-client';
import * as semver from 'semver';

export const storageUrl =
'https://storage.googleapis.com/flutter_infra/releases';
'https://storage.googleapis.com/flutter_infra_release/releases';

interface IFlutterData {
channel: string;
Expand Down

0 comments on commit 4389e6c

Please sign in to comment.