Skip to content

Commit 4534c87

Browse files
committed
test: revert version extraction method in release step to read from cloudsync.h
1 parent 1f44ee4 commit 4534c87

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ jobs:
234234
- name: release tag version from cloudsync.h
235235
id: tag
236236
run: |
237-
VERSION=$(make version)
237+
FILE="src/cloudsync.h"
238+
VERSION=$(grep -oP '#define CLOUDSYNC_VERSION\s+"\K[^"]+' "$FILE")
238239
if [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
239240
LATEST=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r '.name')
240241
if [[ "$VERSION" != "$LATEST" || "$GITHUB_EVENT_NAME" == "workflow_dispatch" ]]; then

0 commit comments

Comments
 (0)