From 732fe3d1aab8bb98db01d7f6ba2f912682af736a Mon Sep 17 00:00:00 2001 From: denis0001-dev Date: Mon, 14 Sep 2026 14:44:29 +0300 Subject: [PATCH] Fix restore-git-mtimes: download script instead of missing PyPI package. Co-authored-by: Cursor --- .github/actions/restore-git-mtimes/action.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/actions/restore-git-mtimes/action.yml b/.github/actions/restore-git-mtimes/action.yml index e6dadea..a0d74e2 100644 --- a/.github/actions/restore-git-mtimes/action.yml +++ b/.github/actions/restore-git-mtimes/action.yml @@ -8,5 +8,10 @@ runs: shell: bash run: | set -euo pipefail - python3 -m pip install --disable-pip-version-check --quiet git-restore-mtime - python3 -m git_restore_mtime + if command -v git-restore-mtime >/dev/null 2>&1; then + git-restore-mtime + exit 0 + fi + script="${RUNNER_TEMP}/git-restore-mtime" + curl -fsSL https://github.com/MestreLion/git-tools/raw/2024.11/git-restore-mtime -o "$script" + python3 "$script"