mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-09-22 19:15:05 +03:00
732fe3d1aa
Co-authored-by: Cursor <cursoragent@cursor.com>
18 lines
554 B
YAML
18 lines
554 B
YAML
name: Restore git mtimes
|
|
description: Reset tracked file timestamps from git so Gradle incremental builds can be UP-TO-DATE after checkout
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Restore mtimes
|
|
shell: bash
|
|
run: |
|
|
set -euo pipefail
|
|
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"
|