diff --git a/ops/runner/read-public-gitea-actions-queue.py b/ops/runner/read-public-gitea-actions-queue.py index 0145e9a1b..fd2780b41 100644 --- a/ops/runner/read-public-gitea-actions-queue.py +++ b/ops/runner/read-public-gitea-actions-queue.py @@ -11,6 +11,7 @@ import urllib.request from dataclasses import dataclass from pathlib import Path from typing import Any +from urllib.parse import unquote DEFAULT_ACTIONS_URL = "https://gitea.wooo.work/wooo/awoooi/actions" @@ -45,6 +46,11 @@ _RUN_STATUS_RE = re.compile(r'') _RUN_BODY_RE = re.compile(r"([^<]+):\s*([^<]+)", re.S) _RUN_COMMIT_RE = re.compile(r"/wooo/awoooi/commit/([0-9a-f]{40})") _RUN_NAME_RE = re.compile(r"^(?P.+)\s+#(?P\d+)$") +_WORKFLOW_FILTER_ITEM_RE = re.compile( + r'' + r"(?P.*?)", + re.S, +) _NO_MATCHING_LABEL_RE = re.compile( r"No matching online runner with label:\s*(?P