CI: Update v2 branch CI to be on par with v3 (#286)

* ci: Update CI to be on par with v3

* ci: Update gosop branch for GopenPGP-v2
This commit is contained in:
Lukas Burkhalter 2024-08-27 13:15:12 +02:00 committed by GitHub
parent 2a07a34fb8
commit 4e8fad59d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 54 additions and 47 deletions

View file

@ -0,0 +1,7 @@
VERSION=$(awk '/^module github.com\/ProtonMail\/gopenpgp\/v[0-9]+/ {print $NF}' gopenpgp/go.mod | awk -F'v' '{print $2}')
if [ "$VERSION" -eq 3 ]; then
echo "gosop-gopenpgp-v3"
else
echo "gosop-gopenpgp-v2"
fi