Skip to content

Commit

Permalink
fix(deps): update dependency got to v13 (#14346)
Browse files Browse the repository at this point in the history
* fix(deps): update dependency got to v13

* chore(actions): migrate actions to ESM

* chore(actions): update @actions/core

* chore: remove use strict

* fix(wait-for-it): update got usage

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: TJ Egan <tw15egan@gmail.com>
Co-authored-by: Taylor Jones <taylor.jones826@gmail.com>
Co-authored-by: Taylor Jones <tay1orjones@users.noreply.github.com>
  • Loading branch information
4 people authored Sep 20, 2023
1 parent cfad9d4 commit 9689330
Show file tree
Hide file tree
Showing 30 changed files with 114 additions and 117 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/got-npm-11.8.5-787b5e3116-2de8a1bbda.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/keyv-npm-4.3.0-7ecb744188-abcb5885fc.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
15 changes: 6 additions & 9 deletions actions/promote/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const core = require('@actions/core');
const execa = require('execa');
const glob = require('fast-glob');
const fs = require('fs-extra');
const got = require('got');
const path = require('path');
import core from '@actions/core';
import execa from 'execa';
import glob from 'fast-glob';
import fs from 'fs-extra';
import got from 'got';
import path from 'path';

const denylist = new Set(['carbon-components', '@carbon/icons-vue']);

Expand Down
3 changes: 2 additions & 1 deletion actions/promote/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "promote-packages-to-latest",
"private": true,
"type": "module",
"dependencies": {
"@actions/core": "^1.8.2",
"execa": "^5.1.1",
"fast-glob": "^3.2.11",
"fs-extra": "^11.0.0",
"got": "^11.8.0"
"got": "^13.0.0"
}
}
5 changes: 3 additions & 2 deletions actions/wait-for-it/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"private": true,
"version": "0.0.0",
"license": "Apache-2.0",
"type": "module",
"repository": {
"type": "git",
"url": "https://github.com/carbon-design-system/carbon.git",
Expand All @@ -17,7 +18,7 @@
"react"
],
"dependencies": {
"@actions/core": "^1.2.3",
"got": "^11.8.5"
"@actions/core": "^1.10.0",
"got": "^13.0.0"
}
}
12 changes: 6 additions & 6 deletions actions/wait-for-it/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/

'use strict';

const core = require('@actions/core');
const got = require('got');
import core from '@actions/core';
import got from 'got';

async function main() {
let url = core.getInput('URL', {
Expand All @@ -23,6 +20,9 @@ async function main() {
url = url.replace('localhost', '172.17.0.1');
}

// As of got v12, legacy Url instances are not supported anymore. You need to use WHATWG URL instead.
url = new URL(url);

core.info(`Waiting for a 200 response from ${url}`);

try {
Expand All @@ -32,7 +32,7 @@ async function main() {
limit: 10,
maxRetryAfter: 1000,
},
timeout: 1000,
timeout: { request: 1000 },
});
core.info(`Received a 200 response from ${url}`);
} catch (error) {
Expand Down
Loading

0 comments on commit 9689330

Please sign in to comment.