Reuse snapcraftctl data across parts

Hi,

I find the adopt-info / snapcraftctl set-version combo very useful.
However, I’d like to reuse the set-version which I’ve done in a part, in another part.
Something like:
name: mysnap
adopt-info: part1
[…]
parts:
part1:
[…]
build: |
version="$(git tag -l | sort -V | tail -n 1)"
snapcraftctl set-version “$version”
git checkout tags/$version
[…]
part2:
[…]
source-tag:
[…]

Is it possible, or is it a feature that could be added ?

Thanks !