remove check version
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
c8167af618
commit
1761325e9c
@ -11,20 +11,6 @@ steps:
|
|||||||
GOARCH: amd64
|
GOARCH: amd64
|
||||||
commands:
|
commands:
|
||||||
- go test ./...
|
- go test ./...
|
||||||
go-check-version:
|
|
||||||
image: golang:1.24
|
|
||||||
commands:
|
|
||||||
- echo "Checking project version..."
|
|
||||||
- VERSION_CURRENT=$(grep 'version =' main.go | cut -d'"' -f2)
|
|
||||||
- PREV_COMMIT=$(git rev-parse HEAD^)
|
|
||||||
- VERSION_PREV=$(git show "$PREV_COMMIT:main.go" | grep 'version =' | cut -d'"' -f2)
|
|
||||||
- |
|
|
||||||
if [ "$VERSION_CURRENT" = "$VERSION_PREV" ]; then
|
|
||||||
echo "❌ The version has not changed. You must update it to merge to main."
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "✅ The version has changed correctly."
|
|
||||||
fi
|
|
||||||
go-build:
|
go-build:
|
||||||
image: golang:1.24
|
image: golang:1.24
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user