From 681a9ab059f0289b6f3972ff26177bbbf04b1953 Mon Sep 17 00:00:00 2001 From: Andrew Konchin Date: Thu, 17 Oct 2024 20:11:04 +0300 Subject: [PATCH] @fixup Add a CI job to retag MRI tests --- ci.jsonnet | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ci.jsonnet b/ci.jsonnet index 7e52cf66c52..a05368b8a5b 100644 --- a/ci.jsonnet +++ b/ci.jsonnet @@ -396,11 +396,15 @@ local part_definitions = { retag_mri_tests: { run+: jt(["retag", "test/mri/tests/**/*test*.rb"]) + [ + ["set-export", "DATE", ["date", "+%F"]], + ["set-export", "TRUFFLERUBY_BRANCH", "retag-mri-tests-$DATE"], + ["git", "checkout", "-b", "$TRUFFLERUBY_BRANCH"], ["git", "config", "--local", "user.email", "you@example.com"], ["git", "config", "--local", "user.name", "Retag MRI tests"], ["git", "commit", "-a", "-m", "Retag MRI tests"], - ["git", "push"], - ] + ["git", "remote", "-v"], + ["git", "push", "-f", "origin", "HEAD"], + ], }, },