Skip to content

Commit 91e6803

Browse files
committed
fix(ci): fix the project version extraction
1 parent a5665aa commit 91e6803

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Get Project Version
3535
id: get_version
3636
run: |
37-
echo "version=$(grep -oP 'WATGBRIDGE_VERSION = \"\K[0-9]+\.[0-9]+\.[0-9]+' state/state.go)" >> $GITHUB_OUTPUT
37+
echo "version=$(cat state/version.txt | tr -d '\n')" >> $GITHUB_OUTPUT
3838
3939
- name: Create Release for amd64
4040
if: always()
@@ -70,7 +70,7 @@ jobs:
7070
- name: Get Project Version
7171
id: get_version
7272
run: |
73-
echo "version=$(grep -oP 'WATGBRIDGE_VERSION = \"\K[0-9]+\.[0-9]+\.[0-9]+' state/state.go)" >> $GITHUB_OUTPUT
73+
echo "version=$(cat state/version.txt | tr -d '\n')" >> $GITHUB_OUTPUT
7474
7575
- name: Create Release for arm64
7676
if: always()

0 commit comments

Comments
 (0)