<p></p>
<blockquote>
<pre><code>git describe | sed -E 's/([0-9]+).([0-9]+).*/\1.\2/'
</code></pre>
<p>always only returns the release branch</p>
</blockquote>
<ol>
<li>Why the excessive use of <code>sed?</code>
<pre><code></code></pre>
</li>
</ol>
<p>git describe | grep -Eo '([0-9]{4}).([0-9]{2})'<br>
```<br>
2. That would be imprecise. All RCs and all commits <em>towards</em> a release would then be versioned as <em>THE</em> release.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/16765#issuecomment-904658092">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYEB7YPB6VEMTY5H42TT6OPHTANCNFSM5CRZHERA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email">Android</a>.<img src="https://github.com/notifications/beacon/ABE7WYHWQFVJQ6JUY6SSTM3T6OPHTA5CNFSM5CRZHERKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGXV7ZLA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16765#issuecomment-904658092",
"url": "https://github.com/RIOT-OS/RIOT/pull/16765#issuecomment-904658092",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>