Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Cornelissen <ericornelissen@gmail.com>
  • Loading branch information
ericcornelissen committed Mar 8, 2024
1 parent f58f055 commit 16a6605
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ release:
@test "$$(git rev-parse HEAD)" = "$$(git rev-parse FETCH_HEAD)"

@echo 'Preparing for version bump...'
@sed -i main.go -e "s/versionString := \"v[0-9][0-9][.][0-9][0-9]\"/versionString := \"v$$(date '+%y.%m')\"/"
@sed -i cmd/ades/main.go -e "s/versionString := \"v[0-9][0-9][.][0-9][0-9]\"/versionString := \"v$$(date '+%y.%m')\"/"
@sed -i test/flags-info.txtar -e "s/stdout 'v[0-9][0-9][.][0-9][0-9]'/stdout 'v$$(date '+%y.%m')'/"

@echo 'Committing version bump...'
@git checkout -b version-bump
@git add 'main.go' 'test/flags-info.txtar'
@git add 'cmd/ades/main.go' 'test/flags-info.txtar'
@git commit --signoff --message 'version bump'

@echo 'Pushing version-bump branch...'
Expand Down
2 changes: 1 addition & 1 deletion cmd/ades/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,6 @@ Exit Codes:
}

func version() {
versionString := "v24.02"
versionString := "v24.03"
fmt.Println(versionString)
}
2 changes: 1 addition & 1 deletion test/flags-info.txtar
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ cmp stdout $WORK/snapshots/legal-stdout.txt

# Version
exec ades -version
stdout 'v24.02'
stdout 'v24.03'
! stderr .


Expand Down

0 comments on commit 16a6605

Please sign in to comment.