Skip to content

Commit 79589d7

Browse files
committed
CI: restore changes to pyproject.toml and uv.lock before switching branches
1 parent c39466c commit 79589d7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.ci/test.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,11 @@ def write_gather_data_file(
390390
def gather_old_failures(old_failures: list, workflow: str):
391391
print("Gather old failures...")
392392
configure_git()
393-
subprocess.run(["git", "fetch"])
394-
subprocess.run(["git", "checkout", "badges"])
393+
# restore the pyproject.toml and uv.lock changes from adding the
394+
# CLN specific pyln versions so we can switch branches
395+
subprocess.run(["git", "reset", "--hard"], check=True)
396+
subprocess.run(["git", "fetch", "origin", "badges"], check=True)
397+
subprocess.run(["git", "checkout", "badges"], check=True)
395398

396399
directory = ".badges"
397400

0 commit comments

Comments
 (0)