Skip to content

Commit

Permalink
fix(ci): fix the project version extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
akshettrj committed Dec 7, 2024
1 parent a5665aa commit 91e6803
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Get Project Version
id: get_version
run: |
echo "version=$(grep -oP 'WATGBRIDGE_VERSION = \"\K[0-9]+\.[0-9]+\.[0-9]+' state/state.go)" >> $GITHUB_OUTPUT
echo "version=$(cat state/version.txt | tr -d '\n')" >> $GITHUB_OUTPUT
- name: Create Release for amd64
if: always()
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
- name: Get Project Version
id: get_version
run: |
echo "version=$(grep -oP 'WATGBRIDGE_VERSION = \"\K[0-9]+\.[0-9]+\.[0-9]+' state/state.go)" >> $GITHUB_OUTPUT
echo "version=$(cat state/version.txt | tr -d '\n')" >> $GITHUB_OUTPUT
- name: Create Release for arm64
if: always()
Expand Down

0 comments on commit 91e6803

Please sign in to comment.