Move calculation of gitlab templates version out of *show-ci-variables
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3518751. -->
Reported by: [jonathan1055](https://www.drupal.org/user/92645)
Related to !349
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>The reusable code snippet <code>.show-ci-variables</code> does more than just "show" the variables, it executes a curl on <code>scripts/extract-version.php</code> then runs that script. If this snippet is used in another job, eg custom after_script, with the intention of displaying the Templates version, then it is not only wasting resources to get the script and execute it, but it can cause errors and/or not run correctly, and give confusing infomation in the log.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>It would be preferable to move the curl and execution of the script into a different code reference, say something like <code>.extract-version</code>, and leave the <code>.show-ci-variables</code> to just do the printing. Then the latter can be called in other places too, without the problem of doing the curl and executing the script.</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<h3 id="summary-ui-changes">User interface changes</h3>
<h3 id="summary-api-changes">API changes</h3>
<h3 id="summary-data-model-changes">Data model changes</h3>
issue