Skip to content

Commit

Permalink
fix: release versioning (#16)
Browse files Browse the repository at this point in the history
* fix: release versioning

* fix: git workflow triggering
  • Loading branch information
deryrahman authored Jul 25, 2023
1 parent b3c2866 commit 4e200bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
tags:
- 'v*'
workflow_dispatch:

jobs:
release:
Expand Down
4 changes: 2 additions & 2 deletions scripts/update_yaml_version.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
# command : update_yaml_version.sh <src_file> <dst_file>
# version comes from CI_COMMIT_TAG, otherwise, use latest
# version comes from git describe --tags

NEW_VERSION="${CI_COMMIT_TAG:=vlatest}"
NEW_VERSION=$(git describe --tags)
NEW_VERSION="${NEW_VERSION:1}" # remove v from v0.2.2
SRC_FILE="$1"
DST_FILE="$2"
Expand Down

0 comments on commit 4e200bb

Please sign in to comment.