From 7181e7b324a806d2d7c55e0ab29482e64451fd67 Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Tue, 8 Oct 2024 09:46:05 +0200 Subject: [PATCH] Add an argument for only merging --- scripts/fetch_nightly_versions.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/fetch_nightly_versions.py b/scripts/fetch_nightly_versions.py index b8422003..c62dfec0 100755 --- a/scripts/fetch_nightly_versions.py +++ b/scripts/fetch_nightly_versions.py @@ -68,6 +68,11 @@ def get_latest_commit( "--extra-path", help="path to a yaml file with spack packages", ) + parser.add_argument( + "--only-merge", + help="only merge the packages.yaml files", + action="store_true", + ) # parser.add_argument( # "--spack", # help="path to the spack.yaml in the nightly environment", @@ -164,6 +169,8 @@ def get_latest_commit( ("raida", "ilcsoft/raida"), ("sio", "ilcsoft/sio"), ]: + if args.only_merge: + break gitlab = False if package == "opendatadetector": gitlab = "https://gitlab.cern.ch/api/v4/projects/%s/repository/commits"