Skip to content

Commit 5206251

Browse files
committed
changes
1 parent 177631c commit 5206251

File tree

8 files changed

+192
-344
lines changed

8 files changed

+192
-344
lines changed

actions/copy-demos/dist/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2049,7 +2049,7 @@ function read_demos_from_json(json_path) {
20492049
async function run() {
20502050
const gradio_version = coreExports.getInput("gradio_version");
20512051
const gradio_client_version = coreExports.getInput("gradio_client_version");
2052-
const config_path = coreExports.getInput("config_path") || path.join(root, ".config", "demos.json");
2052+
const config_path = coreExports.getInput("config_path") || path.join(__dirname, ".config", "demos.json");
20532053
if (!gradio_version || !gradio_client_version) {
20542054
console.error(
20552055
"Usage: node script.js <gradio_version> <gradio_client_version> [config_path]"
@@ -2072,7 +2072,6 @@ ${gradio_client_version}
20722072
${gradio_version}
20732073
pypistats==1.1.0
20742074
plotly
2075-
matplotlib
20762075
altair
20772076
vega_datasets
20782077
`.trim();

actions/filter-paths/dist/index.js

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -86782,7 +86782,6 @@ function match_filter(patterns, files) {
8678286782
}
8678386783
async function run() {
8678486784
var _a;
86785-
console.log(JSON.stringify(context, null, 2));
8678686785
const filter_name = coreExports.getInput("filter");
8678786786
const path = coreExports.getInput("path") || ".github/filters.json";
8678886787
const token = coreExports.getInput("token");
@@ -86795,27 +86794,16 @@ async function run() {
8679586794
}
8679686795
const filter = filters[filter_name];
8679786796
let files = [];
86798-
if (context.eventName === "pull_request") {
86799-
for await (const response of octokit.paginate.iterator(
86800-
octokit.rest.pulls.listFiles,
86801-
{
86802-
owner: context.repo.owner,
86803-
repo: context.repo.repo,
86804-
pull_number: (_a = context.payload.pull_request) == null ? void 0 : _a.number,
86805-
per_page: 100
86806-
}
86807-
)) {
86808-
files = [...files, ...parse_data(response.data)];
86809-
}
86810-
} else if (context.eventName === "push" || context.eventName === "workflow_dispatch") {
86811-
const response = await octokit.rest.repos.getCommit({
86797+
for await (const response of octokit.paginate.iterator(
86798+
octokit.rest.pulls.listFiles,
86799+
{
8681286800
owner: context.repo.owner,
8681386801
repo: context.repo.repo,
86814-
ref: context.ref
86815-
});
86816-
files = [...files, ...parse_data(response.data.files)];
86817-
} else {
86818-
throw new Error("Unsupported event");
86802+
pull_number: (_a = context.payload.pull_request) == null ? void 0 : _a.number,
86803+
per_page: 100
86804+
}
86805+
)) {
86806+
files = [...files, ...parse_data(response.data)];
8681986807
}
8682086808
files = files.map((f) => f.filename);
8682186809
const result = match_filter(filter, files);

actions/find-pr/dist/index.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85283,7 +85283,7 @@ function getOctokit(token, options, ...additionalPlugins) {
8528385283
}
8528485284
getOctokit_1 = github.getOctokit = getOctokit;
8528585285
async function run() {
85286-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
85286+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
8528785287
const octokit = getOctokit_1(coreExports.getInput("github_token"));
8528885288
const { repo, owner } = context.repo;
8528985289
const outputs = {
@@ -85294,8 +85294,7 @@ async function run() {
8529485294
mergeable: false,
8529585295
merge_sha: false,
8529685296
found_pr: false,
85297-
labels: [],
85298-
actor: false
85297+
labels: []
8529985298
};
8530085299
const open_pull_requests = await get_prs(octokit, repo, owner);
8530185300
if (context.eventName === "push") {
@@ -85396,7 +85395,6 @@ async function run() {
8539685395
merge_sha,
8539785396
labels
8539885397
} = get_pr_details_from_title(open_pull_requests, title);
85399-
console.log(JSON.stringify(context, null, 2));
8540085398
outputs.source_repo = source_repo || false;
8540185399
outputs.source_branch = source_branch || false;
8540285400
outputs.pr_number = pr_number ?? false;
@@ -85405,8 +85403,7 @@ async function run() {
8540585403
outputs.mergeable = mergeable === "MERGEABLE" ? true : false;
8540685404
outputs.merge_sha = merge_sha || sha || false;
8540785405
outputs.labels = labels;
85408-
outputs.actor = ((_t = (_s = context.payload.workflow_run) == null ? void 0 : _s.actor) == null ? void 0 : _t.login) || false;
85409-
} else if ((_v = (_u = context.payload) == null ? void 0 : _u.workflow_run) == null ? void 0 : _v.event) {
85406+
} else if ((_t = (_s = context.payload) == null ? void 0 : _s.workflow_run) == null ? void 0 : _t.event) {
8541085407
coreExports.setFailed(
8541185408
"This action can only be run on pull_request, push, or issue_comment events or workflow_run events triggered from those events."
8541285409
);

0 commit comments

Comments
 (0)