passforios-gopenpgp/.github/test-suite/determine_gosop_branch.sh
Lukas Burkhalter 4e8fad59d6
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
2024-08-27 13:15:12 +02:00

7 lines
215 B
Bash
Executable file

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